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
Warren Wu 7Warren Wu 7 

Bulk Api - Data Loss

We're using the bulk API to updates accounts and leads. However we're seeing data loss and cannot seem to find the source of the issue.

We don't see any errors on our side. The logs lack output from the end of the script, specifically the results aren't logged nor is the final line saying the script is done.

When we take a look at the bulk data load jobs, no records failed. But we do have a bit of jobs that are in progress that are days old. I don't think that is the cause of it.

When we send it individually we see that all the data gets through.

User-added image
User-added image

Script:

User-added image

SwethaSwetha (Salesforce Developers) 
HI Warren,

What is the status of the batch job in salesforce? Does it show in progress or completed?

Thanks