function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Stephen E 4Stephen E 4 

Concurrency issues during salesforce bulkload nightly jobs


We use The salesforce API to bulkload records from our ERP system in to SF nightly. However, we are running in to an issue. 

User-added image

User-added image

We regularly run in to the 'TooManyLockFailure' error. We did some googling and read a few threads on concurrency and bulkloads (i.e. running things in serial so nothing bumps in to each other)

However the above is still happening, is there any way to better handle/avoid this error? Salesforce says it retries the batch but it has never once succeeed. This error seems to happen randomly, after we notice records have failed, we run the program again with no issue. What gives?