{"section":"known-issues","requestedLocale":"en","requestedSlug":"orders-created-with-empty-userprofileid","locale":"en","slug":"orders-created-with-empty-userprofileid","path":"docs/en/known-issues/Payments/orders-created-with-empty-userprofileid.md","branch":"main","content":"## Summary\n\nReturning shoppers are not recognised at checkout: their saved data and address are not pre-filled, they type everything again, and the order that comes out is not linked to their customer profile. The merchant then receives an order with `clientProfileData.userProfileId` empty data, which breaks the link to the customer record in CRM, ERP, and reconciliation. It happens when the profile lookup that checkout performs after the shopper enters their e-mail fails; the purchase itself goes through normally, payment included, so nothing signals a problem to the shopper or to the store. Checkout keeps that failure on the cart and, at order placement, skips the profile association instead of trying again.\n\n\n- `clientProfileData.userProfileId` is empty on the order, and `profileErrorOnLoading` is `true`\n- The order timeline shows `It was not necessary to save user profile in Profile' System`\n- The shipping address on the order is a newly typed one, even when the shopper has an address saved on their profile\n- The order is otherwise complete and healthy: payment approved, invoiced, no error shown at any step\n- Returning shoppers lose the link to an existing profile; first-time shoppers get no profile created at all\n- Affects orders placed on the storefront, not marketplace orders\n\nNot the same as an empty `userProfileId` caused by `ignoreProfileData: true` on One-Click / FastCheckout orders, which is expected behaviour.\n\n## Simulation\n\nNot reproducible on demand: it depends on an intermittent failure of the profile lookup during checkout.\nUse this checklist to confirm a case is this KI:\n\n\n1. `GET /api/checkout/pvt/orders/{orderId}` returns `clientProfileData.profileErrorOnLoading: true` with `userProfileId` empty.\n2. The order timeline shows `It was not necessary to save user profile in Profile' System`.\n3. The order's shipping address is marked `isDisposable: true`, and the shopper's profile holds a different saved address.\n4. Rule out \"profile not found\": on a new cart, an e-mail with no profile returns `profileErrorOnLoading: false`. The value `true` therefore means the lookup failed, not that the shopper is unknown.\n5. Rule out `ignoreProfileData`: it is absent from the order and `null` in `GET /api/checkout/pvt/configuration/orderForm`.\n6. If the shopper has an earlier order on the account, that order carries a populated `userProfileId` under otherwise identical conditions.\n\n## Workaround\n\n**Merchant / integration** — resolve the identifier by e-mail from Master Data and fill it downstream: `GET /api/dataentities/CL/search?_where=email={email}&_fields=id,userId` — use the `userId` field, not the document's `id`.\nNothing can be recovered when the shopper had no profile on the account before the order was placed."}