nerdexam
Salesforce

PDII · Question #252

Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account. How can a developer fix this error?

The correct answer is B. Use a helper class to set a Boolean to TRUE the first time a trigger is fired, and then modify the. See the full explanation below for the reasoning.

Question

Salesforce users consistently receive a "Maximum trigger depth exceeded" error when saving an Account. How can a developer fix this error?

Options

  • ASplit the trigger logic into two separate triggers.
  • BUse a helper class to set a Boolean to TRUE the first time a trigger is fired, and then modify the
  • CConvert the trigger to use the @future annotation, and chain any subsequent trigger invocations to
  • DModify the trigger to use the isMultiThread=true annotation.

How the community answered

(52 responses)
  • A
    15% (8)
  • B
    75% (39)
  • C
    4% (2)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice