function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lavan llavan l 

Regarding rolling back whole batch job

I want to rollback whole batch process when single record in any batch gets failed. I want to know how to use DML options optallornone property in batch...........

You can prepare the list and then call :
Database.insert(List records, Boolean allOrNone)

Hope this helps. ;et mw know if this resolves your issue.