Missing Unhandled Apex Exceptions Emails
Last updated 14 days ago ·Reference W-7955758 ·Reported By 46 users
Sometimes customers will not receive all of the expected Apex Exception Emails when a runtime unhandled exception occurs in their code.
There is an instance-wide limit of a few hundred exception emails per hour. Because of this, the exception email quota can be used by few orgs on the instance, depriving other orgs from receiving all of the exception emails occurring in the same hour.
1. Create a Contact before insert trigger that throws an exception (e.g. division by null)
2. Try to create contact record
EXPECTED RESULT: A single exception email is received at the address configured in setup for 'Apex Exception Email' (or by the trigger's LastModifiedBy user).
Note: Subsequent matching unhandled exception emails that happen within the space of a few hours are not sent.
ACTUAL RESULT: The exception email may or may not be received.
Use Event Monitoring to keep track of unhandled exceptions rather than relying on the exception emails.
Reported By (46)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.