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

[BUG] Apex Error in Flow "B2C Commerce: Platform Event: Process Contact Update" #170

Open freytagt opened 2 years ago

freytagt commented 2 years ago

Describe the bug When we are updating Information on Person Accounts in SFSC we get this Error Message: "Error element ia_publishB2CCommerceProfileUpdates (FlowActionCall). An Apex error occurred: System.JSONException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [1,2]" We didn't change anything and SFCC side also.

Was there any SF update and anybody else is encountering the same issue?

To Reproduce Steps to reproduce the behavior:

  1. Create Account on SFCC which is synced to SFSC
  2. Update Information of Account in SFSC e.g. Birthdate

Additional context Input for the Apex Action:

B2CIAPUBLISHCUSTOMERPROFILE (APEX): Publish Updates to the B2C Commerce Profile
Inputs:
apiUrl = {!recGet_B2CCustomerList.Base_API_Url__c} (https://***.net/)
apiVersion = {!$Record.OCAPI_Version_Number__c} (v21_03)
b2cAuthToken = {!B2CAuthToken} (VwqQStBRKMaz45mSQtBsBqUP8n4)
b2cCustomerListId = {!$Record.B2C_CustomerList_ID__c} (***)
b2cCustomerNo = {!$Record.B2C_Customer_No__c} (00011512)
b2cProfileJSON = {!$Record.B2C_Profile_Publish_JSON__c} ({ "birthday" : "1982-01-01", "c_b2ccrm_contactId" : "0033N00000n9Zr0QAE", "c_b2ccrm_accountId" : "0013N000012w0NZQAY" })
crmContact = {!recGet_Contact} (Contact (0033N00000n9Zr0QAE))
crmContactId = {!$Record.CRM_Contact_ID__c} (0033N00000n9Zr0QAE)
crmCustomerListId = {!$Record.CRM_CustomerList_ID__c} (a2u3N00000176ewQAA)