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
64 stars 47 forks source link

[BUG] Error Occurred During Flow "B2C Commerce: Platform Event: Process Contact Update #156

Closed filipecarvalho15 closed 2 years ago

filipecarvalho15 commented 2 years ago

When creating/updating accounts in storefront sometimes we get this error and the field synchronization doesn't work properly in Service Cloud, the account is created and mapped properly to Commerce Cloud but the fields aren't replicated to Core. Using connector release 0.9.0. in production environment. Happens for 25-30% of the accounts created. Apex Class: B2CIAProcessCustomerProfile Troubleshoot: Error 'System.ListException: Duplicate id in list' in Apex

Error element ia_processContactUpdateB2CProfile (FlowActionCall). An Apex error occurred: System.ListException: Duplicate id in list: **** --- An Apex error occurred: System.ListException: Duplicate id in list: ****

To Reproduce Create accounts in the storefront to sync with Core.

Expected behavior Correct synchronization for all accounts being created in store.

filipecarvalho15 commented 2 years ago

Issue seems to be fixed after updating the List to a Map.