Batch Job Cancel Output

Output representation of the batch job cancel request.

Property NameTypeDescriptionFilter Group and VersionAvailable Version
messageStringDetails about why the batch job cancel request failed.Small, 52.052.0

This table lists HTTP response code descriptions that are unique to this resource.

HTTP Response CodeError CodeDescription
400INVALID_STATUSWe can’t cancel the batch job that doesn’t have an active run. Specify the ID of a batch job with an active run and try again.
400INVALID_STATUSWe can’t cancel the batch job that is already canceled or completed. Specify the ID of a valid batch job with the status InProgress or Submitted and try again.
400DELETE_FAILEDWe can’t cancel the batch job of which the results are already being written back.
400DELETE_FAILEDWe can’t cancel the batch job because of an error in processing your org’s data. Run the Data Processing Engine definition and try again.
403FORBIDDENYou don’t have the permission to cancel a batch job. Ask your Salesforce admin for help.
404RESOURCE_NOT_FOUNDSpecify the ID of a valid batch job and try again.
500INTERNAL_SERVER_ERRORSomething went wrong when we tried to cancel the batch job. Try again or ask your Salesforce admin for help.