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
mahemahe 

Help

System.DmlException: Update failed. First exception on row 0 with id 0065000000JfoKmAAJ; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AutoReceiveDeliverable: execution of BeforeUpdate

 

caused by: System.DmlException: Process failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, ProjectDeliverableTrigger: execution of BeforeUpdate

 

caused by: System.Exception: Too many SOQL queries: 101

 

Class.DeliverableProject.ProjectApprovers: line 52, column 1

Trigger.ProjectDeliverableTrigger: line 35, column 1: []

 

Trigger.AutoReceiveDeliverable: line 59, column 1

 

Class.SyncPONumberOnDealSheet.updateDealSheetPONumber_list: line 38, column 1

mahemahe

Any help on this

ForceCoderForceCoder

It looks like the cause is Too many SOQL queries.  You've passed the governor limit.  If you are executing any SOQL statements inside of a for loop that could be the reason why you are executing 100+ queries.

 

 

Devendra@SFDCDevendra@SFDC

 

ForceCoder is correct.

 

Please refer the Execution Governors and Limits of salesforce.


  http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_gov_limits.htm

 

You might have written the soql query inside the for loop. Avoid writting an query inside the for loop.

 

Thanks,

Devendra