You need to sign in to do that
Don't have an account?
System.schedule Exception help
I am trying to invoke system.schedule method. The first parameter is name of the schedule, second is the schedule string and third is the instance of the apex class that implements Schedulable interface.
The schedule string is the following
'58 0 20 12 5 ? 2010'
I get an exception saying System.Exception: trigger must be associated with a job detail
Has anyone encountered this exception before? Any idea where i could be missing? Any help would be appreciated.
3:0:57.407|METHOD_ENTRY|[109,32]|system.schedule(String, String, scheduleActiveQChecker)
3:0:57.450|EXCEPTION_THROWN|[109,32]|System.Exception: trigger must be associated with a job detail
3:0:57.450|METHOD_EXIT|[109,32]|schedule(String, String, APEX_OBJECT)
I had this problem too. It turns out I had a space at the end of the Job Name.
i.e.: System.schedule('Calculate Case Age Minutes ', sch, s);
I removed the space and it worked after that.
i.e.: System.schedule('Calculate Case Age Minutes', sch, s);
All Answers
Hi,
We encountered the same error.
Did you find any workaround? It used to work for us before the last release (summer 10).
Now this is not working.
Thanks,
I had this problem too. It turns out I had a space at the end of the Job Name.
i.e.: System.schedule('Calculate Case Age Minutes ', sch, s);
I removed the space and it worked after that.
i.e.: System.schedule('Calculate Case Age Minutes', sch, s);
Thanks wsmith. Your input really helped :)
Thanks!
Great help
Or at the beginning...