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
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.