You need to sign in to do that
Don't have an account?
Surya Kiran
Custom Iterable Batch Apex Error : System.LimitException: Batchable instance is too big
Hi,
We are importing .csv data from visualforce page. CSV file contains more than 50000 records. I am taking this file from vf page and passing it to batchable class using custom iterator. If the csv file contains below 50000 (some times it might be approx 54000 but not 60000) records it's workig fine. If above 50000 I am getting the above limit exception.
Is there any way to avoid this exception ..?
We are importing .csv data from visualforce page. CSV file contains more than 50000 records. I am taking this file from vf page and passing it to batchable class using custom iterator. If the csv file contains below 50000 (some times it might be approx 54000 but not 60000) records it's workig fine. If above 50000 I am getting the above limit exception.
Is there any way to avoid this exception ..?
Thanks for quick reply. I could avoid that exception.
All Answers
This issue occurs because of batchable class size exceeded the maximum heap size. Please refer following blog for dealing with heap size limit:
http://blog.jeffdouglas.com/2010/08/16/managing-the-heap-in-salesforce-com/
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000913rIAA
Thanks for quick reply. I could avoid that exception.