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
earlbarbyearlbarby 

Query of LOB fields caused heap usage to exceed limit.

Since this weekend we've been getting "Query of LOB fields caused heap usage to exceed limit" from various organizations that have our AppExchange packages installed. Presumably this is due to a change to memory usage enforcement in the Winter 12 release, but I can't find any information about it in the release notes or elsewhere. Obviously, this is caused by queries returning too much data, but what specifically has changed to cause this error when it has never occurred before?

cARL scARL s

The heap size increase in Winter '12 is not by default.  Call the setLimitHeapSize() method to set it.