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
Joy ManubagJoy Manubag 

Sending Email Failed

Im sending an email with an attactment and i got this error.

does anyone have an idea on this error?

System.EmailException: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, null argument for JSONGenerator.writeBooleanField(): []

 

VamsiVamsi
Hey Joy,

Please add a null check before you pass a value to this JSONGenerator.writeBooleanField().