Skip to main content Join the Agentforce Virtual Hackathon to build innovative solutions and compete for a $50k Grand Prize. Sign up now. Terms apply.
Scenario :

I have an Account object and Schedule__c object.

I want to update account and Schedule__c objects' fields on update before trigger.

When I update Account in Batch class called by Account trigger I am getting following exception:

Update failed. CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

When I remove update accoount; statement from the execute() function of batch class it is not reflecting the changes made in account object as it does automatically in Account trigger.

PLease let me know if anyone has the solution.

Thanks,

Sohel
2 answers
  1. Jun 1, 2016, 11:36 AM
    I need more details on this. The error is too vague. We need the full error and the key pieces of code. Otherwise, it's a guess.
0/9000