I am creating an account which is recently developed in Magento 2.2.4 and migrated from Magento

I am getting error "No such entity with email = [email protected], websiteId = 1"

I am not finding the way that how to know which empty is missing in my database.While I have already checked each tables manually which is responsible to create an account.

I wanna know is there any tool that help to know exactly what is missing in my DB.

My website is multi website.

While Debugging code in file


try {

            // If customer exists existing hash will be used by Repository
            $customer = $this->customerRepository->save($customer, $hash);
        } catch (AlreadyExistsException $e) {
            throw new InputMismatchException(
                __('A customer with the same email already exists in an associated website.')
        } catch (LocalizedException $e) {
            throw $e;

How to debug code after line

$customer = $this->customerRepository->save($customer, $hash);

while creating account every time its going to

} catch (LocalizedException $e) {
                throw $e;

and produce error

"No such entity with email = [email protected], websiteId = 1"

Is there any way we can through error what exactly is missing in my DB?




Your Answer

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

Browse other questions tagged or ask your own question.