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
ultratechultratech 

First error: Too many query rows: 50001 will my next scheduled run updated the failures first?

If my scheduled Batch APEX Jobs say "First error: Too many query rows: 50001" and it says there are 24 Batches Processed and 6 Failures. Will the next scheduled run update those 6 failures first so it doesn't keep skipping them?
UC InnovationUC Innovation
Hi ultratech,

Unfortunately that will not happen. The next scheduled job will run all the batches over again. Chances are, those 6 batches that failed will continue to fail. You probably need to adjust your code to limit your query rows.

Hope this helps!