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 Process Contact Update Flow #163

Closed freytagt closed 1 year ago

freytagt commented 2 years ago

Describe the bug "B2C: Get Customer Profile" Apex action in the "B2C Commerce: Platform Event: Process Contact Update"-Flow throws this error when triggered: "An Apex error occurred: System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out"

I didn't change anything in the Flow or in the Apex class and the Input variables came all in correctly.

Screenshots Flow Error

Additional context The Connector runs on our production environment.

filipecarvalho15 commented 2 years ago

Also have this issue.

ishaanmotwani commented 2 years ago

I am also getting this issue

mirelaghiteanujpard commented 2 years ago

I am also getting the same issue.

mirelaghiteanujpard commented 1 year ago

Hello, Any updates on this bug? I still receive error messages when there is a big traffic of users on the B2C website. For example, yesterday I received the error email 30 times. Today when the traffic got back to normal, I still received the error emails 4 times. Can anyone share the progress on this, please ?

jbachelet commented 1 year ago

Hello,

This has been fixed in #212 and released in v2.0.0.

Thanks