QUESTION:
I tried to process some changes using the Bulk API option and it failed with the following error in the logfile:
- Bulk API,"Post XML byte array Data",,,,,,,"Post XML Data fail: The remote server returned an error: (400) Bad Request."
I have done similar changes before without issue. I also tried the job again and now I am getting a message to the UI in DemandTools:
- "Error sending batch. Exiting"
What is the problem?
ANSWER:
Salesforce limits how many Bulk batches can be submitted in a 24hr period (rolling 24hrs) to no more than 5000 batches. These errors will occur when you have exceeded that limit. In order to process your job you will need to wait until some batches have been freed up.
To check if you have exceeded this limit got to Setup -> Monitoring -> Bulk Data Load Jobs.
More information on this limit can be found in Salesforce's Help Documentation.
Note: If you exceed the limit by a small percentage, Salesforce will typically let any submitted batches finish, but will not allow any new jobs to start, i.e. will get the "error sending batch. Exiting" error for subsequent new jobs.