b2c-crm-sync
b2c-crm-sync copied to clipboard
An error occurred with your "B2C Commerce: Process: Create Or Update Contact" flow
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
Your local environment details:
- @salesforce/cli/2.30.8 win32-x64 node-v18.18.0
Your remote environment details:
- Salesforce B2C Commerce version: v21_3
- Salesforce Core version: 59
Additional context
- I am using person Accounts
- This could be related to Issue #106