Hi All,
While scheduling a class we some times gets error "Trigger must be associated with a job detail".
For example: I was facing this error when I schedule my class "ScheduleClass" using System.schedule, giving name to the schedule job "One Time ".
Now please notice there is a space after "One Time ", when I removed this extra space from the name ("One Time") my class was scheduled as expected.
Thanks
While scheduling a class we some times gets error "Trigger must be associated with a job detail".
For example: I was facing this error when I schedule my class "ScheduleClass" using System.schedule, giving name to the schedule job "One Time ".
ScheduledClass SC = new ScheduledClass() ; String sch = '0 0 10 * * ?'; System.schedule('One Time ', sch, SC);
Now please notice there is a space after "One Time ", when I removed this extra space from the name ("One Time") my class was scheduled as expected.
Thanks
Saved me a day atleast
ReplyDeleteohh dats gr8 tip
ReplyDeleteit works perfectly
i cud never interpret it..
How to update a field from vf page....?
ReplyDeleteThank you for this post
ReplyDeleteThis is an internal SFDC bug. Let's vote for this idea https://success.salesforce.com/ideaView?id=08730000000DpYoAAK to make them fix it
ReplyDeleteThis was a very well researched post . I would like to thank the author for creating a awesome post.
ReplyDeleteaudience voting system
audience voting system
best audience response system
best audience response system
best audience response system
Great it works for me too
ReplyDeleteVery much helpful.thanks.
ReplyDelete