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
Abhilash Mishra 13Abhilash Mishra 13 

Schedule job failing

Hi I have schedule a job to send email on a daily basis how ever Its noy working and giving following error

Scheduler: failed to execute scheduled job: jobId: 7075800000IN0MU, class: common.apex.async.AsyncApexJobObject, reason: Not Serializable: com/salesforce/api/fast/List$$lcom/salesforce/api/Messaging/SingleEmailMessage$$r

what could be be the possible reason. what is the meaning of serializable?

Need help !!!
Abhilash Mishra
 
Best Answer chosen by Abhilash Mishra 13
Abhilash Mishra 13Abhilash Mishra 13
well I have read Some where that I should user Transient keyword. beacuse this error arises when system fail to save view state. Using Transient is working fine for me right now. So I think that what the best solution so far.

All Answers

EnreecoEnreeco
Did it stop running or did it never run?

--
May the Force.com be with you!!
Abhilash Mishra 13Abhilash Mishra 13
It Never Runs.
EnreecoEnreeco
You should share the code where you send the SendEmailMessage object
Abhilash Mishra 13Abhilash Mishra 13
well I have read Some where that I should user Transient keyword. beacuse this error arises when system fail to save view state. Using Transient is working fine for me right now. So I think that what the best solution so far.
This was selected as the best answer