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
needhelpneedhelp 

Number of records processed by Batch Apex

Is there a way to know number of records that has been processed, rejected by a batch apex job?

 

hitzhitz

hi,

 

as per my knowlage total 200 records are processed per batch job.. for more.... read this

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#CSHID=apex_batch_interface.htm|StartTopic=Content%2Fapex_batch_interface.htm|SkinName=webhelp

JimRaeJimRae

The sample in the API documentation shows a finish method that includes email the full results (number processed, number of errors) upon completion.

 

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

 

That is what we use.

needhelpneedhelp

The example only able to get number of batch(es) processed.

 

I would like to get the exact number of records being process successful or fail and the error detail.

 

I only way I can think of is by using custom object and insert the details in. Does anyone has a better way to do it?