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

salesforce Fetch failed record results after bulk operation #886

Open
mtuchi opened this issue Jan 9, 2025 · 1 comment
Open

salesforce Fetch failed record results after bulk operation #886

mtuchi opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels
wontfix This issue will not be addressed in this lifetime or the next

Comments

@mtuchi
Copy link
Collaborator

mtuchi commented Jan 9, 2025

Description

Fetch failed record results after bulk operation
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/get_job_failed_results.htm

@mtuchi mtuchi self-assigned this Jan 9, 2025
@github-project-automation github-project-automation bot moved this to New Issues in v2 Jan 9, 2025
@mtuchi mtuchi changed the title salesforce failed results salesforce Fetch failed record results after bulk operation Jan 9, 2025
@mtuchi
Copy link
Collaborator Author

mtuchi commented Jan 14, 2025

After couple of research i couldn't GET /services/data/vXX.X/jobs/ingest/jobID/failedResults to work. I also tried on postman making a GET request to an existing jobId after bulk insert but i am getting no results. 204 No Content to be specific.
Here are couple of links that i have gone through

Suggestions
Since the purpose of this enhancement is to see the Sf fields of original request data, We should leave that to job code for the time being to buy enough time for #663 because in jsforce3. It's really nice improvements and makes it easy to fetch failed results.

For example we can use loadAndWaitForResults function which will return both successfulResults, failedResults and unprocessedRecords

const { successfulResults, failedResults, unprocessedRecords } =
  await conn.bulk2.loadAndWaitForResults({
    object: "Account",
    operation: "insert",
    input: accounts,
    pollTimeout: 60000,
    pollInterval: 5000,
  });

cc @josephjclark

@mtuchi mtuchi added the wontfix This issue will not be addressed in this lifetime or the next label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This issue will not be addressed in this lifetime or the next
Projects
Status: New Issues
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant