Site icon Assurex

How to resolve user registration error in Sitecore Commerce – “Invalid or missing value for property Domain”.”User created but external Id was not provided”

You may have come across the aforementioned error when creating a new account from the storefront.

The reason? the commerce engine is trying to create a customer in Commerce and the domain you have created for Storefront is not available in Commerce.
The customers in commerce are mapped to the domain and if the domain is not found or matched with what is configured in Storefront this error will come.

So how to resolve this?

Say your Storefront is mapped to use the default environment i.e. HabitatShops.

Follow steps below resolve the issue

Add the domain you have configured in your storefront in this list e.g.:- HabitatStorefront

Bootstrap Habitat Environment using Postman and now you should see the domain in the list whilst creating a customer

You should now able to see the domain in the list whilst creating a customer in business tool

Should also allow to create a customer with the new domain-

Hope this helps.

References

Did you find this useful? If so, please share with your connections.
Exit mobile version