36.8k views
1 vote
An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a "maximum trigger depth exceeded" error occurs in certain situations. Which two reasons could posssibly explain the Account trigger firing recursively?A. Changes are being made to the account during criteria based sharing evaluationB. Changes are being made to the account during an unrelated parallel save operationC. Changes to opportunities are causing cross-object workflow field updates to be made on the accountD. Changes to opportunities are causing roll-up summary fields to update on the account

User Silviud
by
4.2k points

1 Answer

2 votes

Answer:

C. Changes to opportunities are causing cross-object workflow field updates to be made on the account

D. Changes to opportunities are causing roll-up summary fields to update on the account

Step-by-step explanation:

The maximum trigger depth exceeded error would occur when there is a recursion in the trigger. This recursion can be caused by a lot of factors which may include; repeated executing the same code over and over again, an infinite loop resulting in governor limit, cross-object workflow field updates on accounts, and update of roll-up summary fields.

User Garyh
by
4.3k points