Heap Size Limit Attachments Object

rslackrslack ✭✭✭✭
edited March 2, 2017 in Questions
This is solved for me but I am posting in case anyone else runs into it.  It was a beginners error back in the day that just reared its head.  I have a page include with one model where the SObject Type is Attachment.  I was surpassing the JSON heap size limitation and the page was crashing.  After some trial an error I think I have figured out my issue. Basically, I included the field "Body" and if I loaded over 10 records the heap size was surpassed.  Once I removed the body field from the model I was fine.  I believe this is because Body is the attachment in binary so it can be rather large almost like loading the attachments into the page instead of just the links to the attachments. 

Why did I load the body?  I was new and experimenting with which fields displayed what and never removed it from my model when I was learning.  Bottom line don't include the field "Body" on your attachment objects.

Comments

  • edited March 2, 2017
    Thanks for posting this, Rich, very important point for others who are working with the Attachment object.
  • Rob HatchRob Hatch 🛠️ 
    edited September 1, 2016
    Thanks for documenting this Rich.  You are right that the Body field in the attachment object is really useless in Skuid, and can contribute to Heap Size errors..  In A Hurry! 
  • Matt SonesMatt Sones 💎💎💎
    edited February 10, 2017
    Thanks! Just ran into the same issue. A quick and easy fix!
  • edited February 13, 2017
    Was just researching my issue before making a post about it. Turns out this was exactly my issue so thanks for posting!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!