When I add a product to cart , It is not added it throws an error
"No Such entity with customerId ="
This Error also shown in My Account page when try to login.

2 Answers 2


We are getting No Such entity with customerId e when magento is not able to load a customer by it Customer repository class.

May be few reasons this issue is occurring:

  1. May be Cart object has wrong customer id,so you need to check at database at quote table.
  2. May be Custom code and custom has changes the behavior of Customer model class and it repository classes,You need to check that need to fixed it

Do you have create any observer for cart for ex:- sales_quote_add_item then disable that and check. I have also facing same issue when click on reorder then i got same error. "No Such entity with customerId ="

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.