Batch DML error tracking
Posted: Thu 09 Aug 2018 03:25
I really love the speed of batch processing using array DML. Unfortunately, there is very little information available if the batch fails. I can get (from the connection component!) the error message that contains the details of the failure (e.g. "primary key violation", and the primary key information) but that is it. I have no idea of the index of the offending item in the array, or any other parameters for that record.
Is there some way to get more transparency?
Ideally, I would like to have an event like OnUpdateError that can collect all information and respond with a choice of actions, however I would settle for the index of the record that failed.
Is there some way to get more transparency?
Ideally, I would like to have an event like OnUpdateError that can collect all information and respond with a choice of actions, however I would settle for the index of the record that failed.