Salesforce support requested to abort bulk data jobs from API, we tried doing it via UI, but salesforce support said it did not work! looking for ways to do it via rest, soap or any other ways

1 Answer 1


You can abort bulk data jobs using CURL command as below

curl -H 'X-SFDC-Session: <<insert session id here>>' -H 'Content-Type:text/csv;charset=UTF-8' -d @job.xml <<insert your org endpoint url here>>services/async/38.0/job/<<insert job id you want to abort>>

create file job.xml with following content

<?xml version="1.0" encoding="UTF-8"?>

If you want to close job change above file to <state>Closed</state>

Salesforce documentation - Bulk API Developer Guide please see section "Walk Through a Bulk Query Sample".

  • Also When u try to click on close job hyperlink it reloads the entire page. Instead of that you could simply click open in new tab. It will save your time and could close multiple jobs. In the end close all your newly open windows.
    – Praneeth
    Sep 13, 2018 at 18:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .