Salesforce Certified Platform Developer II — Question 146
A developer gets an error saying 'Maximum Trigger Depth Exceeded'.
What is a possible reason to get this error message?
Answer options
- A. The SOQL governor limits are being hit.
- B. A process Builder is running that sends mass emails.
- C. There are numerous DML operations in the trigger logic.
- D. A trigger is recursively invoked more than 16 times.
Correct answer: D
Explanation
The correct answer, D, is accurate because Salesforce has a limit on the number of times a trigger can be invoked recursively, which is 16. This prevents infinite loops but can lead to the error if not managed properly. The other options, while related to governor limits or process executions, do not specifically pertain to the trigger depth limit.