+ Start a Discussion
Sagar_SFDCSagar_SFDC 

system.LimitException: Query of LOB fields caused heap usage to exceed limit

Getting Query of LOB fields caused heap usage to exceed limit​ in apex trigger in the SOQL Query on Content Version.

List<Id> ListNewRD_KB = new List<ID>(); 

List<ContentVersion> ListContentVersion  = [Select id,VersionData, Title,PathOnClient,R_D_Knowledge_Base__c,ContentBodyId   from ContentVersion  where R_D_Knowledge_Base__c  IN : ListNewRD_KB limit 1] ;

User-added image
Punit BaxiPunit Baxi
Did you got an answer for this error? We are also running into the same error.