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
NARAYANA PANAKALANARAYANA PANAKALA 

How to process failed records in batch apex

Hi  All,
When we are executing batch apex, few records are not inserted to the database due to some invalid data (let say 10 out of 100000 records are failed) how to process those 10 records. 

Thank you,
Swamy
 
Team NubesEliteTeam NubesElite
Hi Narayana,
Please refer this link
https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_batches_failed_records.htm


Thank You
www.nubeselite.com
Development | Training | Consulting


Please mark this as solution if your problem resolved.
NARAYANA PANAKALANARAYANA PANAKALA
Hi Team NubesElite,

Thank you for your reply.
I also want to know is any possibility to execute the same failed records (after given the valid field information manually) without waiting for the next scheduled time.

Thank you
Swamy

 
Team NubesEliteTeam NubesElite
Hi Narayana,
You can run this batch class in developer console open Execute Anonymous window.




Thank You
www.nubeselite.com
Development | Training | Consulting


Please mark this as solution if your problem resolved.