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
Nandhini S 3Nandhini S 3 

Order of execution in triggers

Hi team,
I'm getting 101 error in one of the scenarios. When I checked the logs, I can see before update trigger methods are being called again after the after trigger methods are executed.
This is not happening in dev but happening in other sandboxes. 
What would cause before update trigger methods to be called again?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Nandhini,

I hope you might me having some workflow field update or  after the update trigger which is causing it to retrigger it. Please find the below order of execution for triggers.

https://shreysharma.com/trigger-order-of-execution/

If this solution helps, Please mark as best answer.

Thanks
 
mukesh guptamukesh gupta
Hi Nandani,

Before update should not execute on aftre Update trigger Event, if it's happen then  please follow below url:

http://amitsalesforce.blogspot.com/2015/03/how-to-stop-recursive-trigger-in.html

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh