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
Prashant TiwariPrashant Tiwari 

Batch Class

Hi Experts,

Hope u all are doing good !

I am running a batch class however I see that after processing some batches the batch class execution ends with the error "Batchable instance is too big:". I tried executing the batch class by passing the smaller batch size (like 10,50, etc..) and also not implementing database,stateful, still facing the same issue. 

Looking for any help. Thanks in advance !!

Thanks,

Prashant
Amit BangadAmit Bangad
I suggest you to check the status of the global variables after each execution and you may find the solution to your problem as well.

Thanks,
AMit
Prashant TiwariPrashant Tiwari
Hi Amit,

Thanks for the reply. I am not getting which global variable. Are you taking about the collections(list, map) defined in the batch class? I did't use any globally declared  variable. Can you explain in detail/ put any example here.

Prashant