You need to sign in to do that
Don't have an account?
Raghu Nani
Maximum trigger depth in salesforce
Hi friends,
Usually after Update trigger will gives the error saying maximum Trigger depth Exceeded.
How many times trigger will execute to reach this error Or in other words What is the depth of the trigger?
Thanks,
Raghu
Usually after Update trigger will gives the error saying maximum Trigger depth Exceeded.
How many times trigger will execute to reach this error Or in other words What is the depth of the trigger?
Thanks,
Raghu
Normally 'Maximum Trigger depth Exceeded' error occurs when a trigger recursively invoke triggers more than 16 times (Maximum stack depth).
To avoid this we have to break the recursive call. One way is to use static boolean flag whereever your business logic permits.
If you find this helpful, please mark it as Solved.
Thanks.
All Answers
Normally 'Maximum Trigger depth Exceeded' error occurs when a trigger recursively invoke triggers more than 16 times (Maximum stack depth).
To avoid this we have to break the recursive call. One way is to use static boolean flag whereever your business logic permits.
If you find this helpful, please mark it as Solved.
Thanks.
"Maximum Trigger Depth Exceeded" error show when you are under recurison condition to slove this recursion used one static boolean variable
to slove recursion check this link
https://help.salesforce.com/articleView?id=000133752&type=1
mark as best answer if this is helpful.
thank you
Avaneesh Singh
will the initial transaction which started the recursive triggger to five will be commuted after the stack depth error? Or entire transaction will be rolled back after the error?