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

Salesforce Integration Tutorial | Integrate Salesforce with Apps

Video in

This "𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞 𝐈𝐧𝐭𝐞𝐠𝐫𝐚𝐭𝐢𝐨𝐧 𝐓𝐮𝐭𝐨𝐫𝐢𝐚𝐥" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…