Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Jobs Not Closing with createBulk #1320

Open
abney317 opened this issue Apr 13, 2023 · 1 comment
Open

Some Jobs Not Closing with createBulk #1320

abney317 opened this issue Apr 13, 2023 · 1 comment
Labels
docs Documentation

Comments

@abney317
Copy link

I am using createBulk to insert task records. jsforce 1.11.0

const result: jsforce.RecordResult[] = await new Promise((res, rej) => {
  conn.sobject('Task').createBulk(parameters, (error, result) => {
    if (error) {
      rej(error);
    }
    res(result);
  });
});

This is inside of a function that returns a promise. I call this function in a loop that batches these tasks by 10,000 and then runs Promise.all an awaits the results.

If I run with 100,000 items, it would get split into 10 calls of the createBulk function. In this case, all 10 calls are returning and inserting all of the records correctly (all 10 returning success). The only issue is that sometimes a few of the bulk jobs are not closed in salesforce. Is there any reason why a few might not be getting marked as closed?

@danviizr
Copy link

danviizr commented Aug 7, 2023

Am running into the same issue, end up with in progress jobs in Salesforce Setup -> Bulk Data Load Jobs

@cristiand391 cristiand391 added the docs Documentation label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation
Projects
None yet
Development

No branches or pull requests

3 participants