SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 45 forks source link

An error occurred with your "B2C Commerce: Process: Create Or Update Contact" flow #274

Open ddxxtony opened 3 weeks ago

ddxxtony commented 3 weeks ago

Describe the bug

In general, the integration has been working fine, but while sending new accounts from SFCC to SFSC I've been intermittently getting an error around 5 times a month. One thing I've noticed is that accounts are still being created despite these errors. The accounts are created at the same time that I get the error emails.

The element where the flow fails: CREATE RECORDS: Create B2C Business Contact Record

The error I get on the SFCC side is the following: "Thu, 18 Apr 2024 23:12:58 GMT: Status 400 (Bad Request): [{"actionName":"B2CContactProcess","errors":[{"statusCode":"UNKNOWN_EXCEPTION","message":"An error occurred when executing a flow interview.","fields":[]}],"isSuccess":false,"outputValues":null,"version":1}]"

And in Service Cloud, I get this: [External] An error occurred with your "B2C Commerce: Process: Create Or Update Contact" flow

Error Occurred: This error occurred when the flow tried to create records: DUPLICATE_VALUE: duplicate value found: B2C_Customer_ID__c duplicates value on record with id: 003PY0000xxxxxxxxx. You can look up ExceptionCode values in the...

To Reproduce Unfortunately I haven't been able to replicate this error as it happens very randomly.

Expected behavior I shouldn't receive any error while syncing accounts from SFCC to SFSC

Screenshots image

Your local environment details:

Your remote environment details:

Additional context