Data not appearing in ecommerce bridge and lots of sync errors

Hi,

Thanks for the reply. I’ve heard about the race condition before, and we have 1 second delays inbetween, but we’ve not ever suffered from any issues up to now. I am loathed to change our code again (but agree we might have to if no other solution presents itself). The whole problem is just too coinidental to the change of mappings (adding the two text fields). Perfect data, change mappings, stops working.

One big issue with the ecommerce API is the payloads. The payload should be possible to add with one JSON structure. Sending 4 API calls seems wasteful. If we could put CONTACT, DEAL, PRODUCT and LINE_ITEM in one JSON structure it would be great, but we’ve tried and it does not work and support told us we need separate calls. That would also proably deal with the race condition you mention.

I will try increasing the delays, but the API calls are in a customer-facing page, so more delays for them. I can restructure that if it works however. Pauses also sound rather “hackish”.

I’ll let you know.