Activity Forums Salesforce® Discussions In Salesforce, I am getting this error when I am running batch | error: atchable instance is too big: ManagementReportTwoBatch

  • S

    Member
    June 7, 2017 at 9:52 am

    Hi Pavan,

    Generally, this error comes when you use Database.Stateful interface in your batch class. Salesforce in order to avoid hitting limits captures the heap size for such requests and display the error when it exceeds 6 MB for synchronous requests.

    Ways to get around this -

    1. Avoid using Database.Stateful
    2. Reduce the amount of persistent data
    3. Process less records per batch

     

    For more details read this - https://help.salesforce.com/articleView?id=000239885&type=1

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos