You need to sign in to do that
Don't have an account?

Not commiting changes on error in Bulk API data load....
All,
I am using the Bulk Data Api to upsert a large number of records. If one of those records fails I would not like the successful changes commited. Is there a way to achieve this. On the BulkConnection I see there is an abortJob method. If I abort a job after it has already run through a few batchs will be undo the changes that have already been made? Is there any easier way to do this? Thanks in advance for any help.
After reading the documentation, aborting the job obviously won't do it. Has anyone ever done this before? Any recomendations?
No, once the changes from a processed batch are committed, there's no way to roll them back. This is baked into the design of the bulk API - we cannot provide what you're asking for without severely severely affecting processing speed.
Hi,
Will the Allornone option work for you?
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_header_allornoneheader.htm
AllOrNone option is not available in the bulk API, it is on the Web Services API
I am also facing the same issue. I want to rollback the complete batch if any of the record gets failed.
Any solution anyone?