Just a quick query on Batch Apex.
Let us say I have about 8000 Opportunity records to process in our nightly batch job.
The objective of this batch is to update a field on Opportunity if it matches certain condition.
I want the number of records in each "chunk" (batch) to be around 100 which I will indicate in my scope parameter.
So that puts me to 80 batches to be processed and I believe Gov Limits will be applicable within each batch.
There are two records A & B which will cause validation errors when they are getting updated.
Assume they are in Batch #1 (Record A) and Batch # 71 (Record B) out of 80 batches.
Record A from Batch #1 fails the DML.
Will this cause the entire batch job to fail or only that particular record in Batch # 1 to fail and other records will proceed as usual or the entire batch of Batch #1 will fail ?
Will the other batches (Batch #2 to Batch #70, Batch #72 to Batch #80) proceed for processing ?