First of all: what are LOB fields?
Secondly: I have a complex apex automated process in which I need to make an exact copy of an Asset object (all of its fields). To do this I created a method that describes and lists all of the fields, so I can create and edit the copy.
When issuing the
Database.query statement, I'm getting an exception:
System.LimitException: Query of LOB fields caused heap usage to exceed limit.
Why does this happen?
On the debug log I get plenty of space in the synchronous transaction (6mb):
16:45:38:155 USER_DEBUG |FINE|Heap limit: 6000000 16:45:38:156 USER_DEBUG |FINE|Heap usage: 5316