Skip to main content
Gaurav Kumar (Accenture) a posé une question dans #Apex
HI All,

I am trying to write a trigger on object1 i.e after insert/ after update to create record on object2. But I am getting error (Apex heap size too large: 39897844) on saving record on object1.

Thanks in advance. 
3 réponses
  1. 7 oct. 2025, 10:08

    Try using these methods to find how much heap is consuming in your code. limtis.getHeapSize(); 

    limtis.getLimitHeapSize();