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
NAlmolaNAlmola 

APEX HEAP SIZE TOO LARGE ERROR

We have a installed managed package on our org called Archive Case Emails. What this does is convert precious data storage to file storage. A batch is run every Saturday so as not to disrupt normal operations. However on checking our system overview it would appear that our data storage is on limit. I checked the job logs and there appears to be many errors relating to issues on conversion. I contacted the installed package team and they stated that 'there is a heap size limit in salesforce which package cannot override therefore package cannot archive such cases.

Can anyone therefore respond to the following: 

1) Has anyone else encountered this?
2) Has anyone been able to find a work around?
3) Is there a way of reporting on data sizes per email message/attachement?
4) Has Salesforce created a notification system which informs the Systems Admin that the data storage is reaching maximum capacity?

I have deleted a our org's recycling bin and some tasks but it doesn't look like the data storage figures have changed, is there something else we need to do in order for SFDC to catch up? 
NagendraNagendra (Salesforce Developers) 
Hi Norah88,

Sincerely regret the inconvenience for the delayed reply.


There's a lot of useful information around heap management in this post from Jeff Douglas.
 
http://blog.jeffdouglas.com/2010/08/16/managing-the-heap-in-salesforce-com/

Please refer to the below link for more information on the above eror.

Please mark it as solved if it helps you.

Best Regards,
Nagendra.P