cancel
Showing results for 
Search instead for 
Did you mean: 

No such entity with customerId - Magento 2.3.4

No such entity with customerId - Magento 2.3.4

I imported all my customers from my old Magento store. But now, when a customer try to log in in my new store with a wrong password, they can see this error:

 

1 exception(s):
Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with customerId = 

Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with customerId = 
<pre>#1 Magento\Customer\Model\CustomerRegistry->retrieve() called at [vendor/magento/module-customer/Model/ResourceModel/CustomerRepository.php:340]
#2 Magento\Customer\Model\ResourceModel\CustomerRepository->getById() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#3 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#4 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#5 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->___callPlugins() called at [generated/code/Magento/Customer/Model/ResourceModel/CustomerRepository/Interceptor.php:52]
#6 Magento\Customer\Model\ResourceModel\CustomerRepository\Interceptor->getById() called at [app/code/Bss/LoginAsCustomer/Plugin/SwitcherStore.php:97]
#7 Bss\LoginAsCustomer\Plugin\SwitcherStore->afterExecute() called at [vendor/magento/framework/Interception/Interceptor.php:146]
#8 Magento\Customer\Controller\Account\LoginPost\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#9 Magento\Customer\Controller\Account\LoginPost\Interceptor->___callPlugins() called at [generated/code/Magento/Customer/Controller/Account/LoginPost/Interceptor.php:52]
#10 Magento\Customer\Controller\Account\LoginPost\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:108]
#11 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#12 Magento\Customer\Controller\Account\LoginPost\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#13 Magento\Customer\Controller\Account\LoginPost\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#14 Magento\Customer\Controller\Account\LoginPost\Interceptor->___callPlugins() called at [generated/code/Magento/Customer/Controller/Account/LoginPost/Interceptor.php:65]
#15 Magento\Customer\Controller\Account\LoginPost\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:159]
#16 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:99]
#17 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#18 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#19 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#20 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#21 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [app/code/TemplateMonster/LayoutSwitcher/Model/App/Action/ContextPlugin.php:40]
#22 TemplateMonster\LayoutSwitcher\Model\App\Action\ContextPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#23 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:73]
#24 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [app/code/TemplateMonster/SiteMaintenance/Model/PageCache/App/FrontController/BuiltinPlugin.php:34]
#25 TemplateMonster\SiteMaintenance\Model\PageCache\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#26 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#27 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:26]
#28 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#29 Magento\Framework\App\Http->launch() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:24]
#30 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:261]
#31 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:40]
</pre>

 

Can someone tell me how I can fix it please?

Many thanks