function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anam99anam99 

Javascript Remoting and Apex Exception e-mails

Hi. Since switching our managed package to use Javascript Remoting instead of ActionFunctions, I no longer receive Apex Exception emails when an Apex Exception occurs. I still have the checkbox ticked to enable Apex Exception emails.

Is this expected behaviour?

Is there any way to ensure that Apex Exception emails are sent while using Javascript remoting?

Thanks!
Vinita_SFDCVinita_SFDC
Hello,

APEX exception mails are sent when an unhandled exception occurs in a trigger or class, not while using Javascript remoting.
anam99anam99
Hi Vinita,
Thanks for your response! So just to confirm, if a Javascript remoting call causes an unhandled exception in an Apex class, there is no exception mail?
Vinita_SFDCVinita_SFDC
Hello,

If it causing exception in apex then you should get email. Can you share your code to reproduce this and confirm.