System.AsyncException: trigger must be associated with a job detail
Suppose you are going to schedule a scheduler class using below code.
MySchedulerClass objSch = new MySchedulerClass(); String cronexp = '0 0 10 * * ?'; System.schedule('My Scheduler ', cronexp, objSch);When you trying to execute the above code, you will get the below error.
Point to Remember: - Please do avoid extra space after scheduler name while scheduling any class. You can put space between scheduler name but not after the name.
Hope you like this post, for any feedback or suggestions please feel free to comment. I would appreciate your feedback and suggestions.
Thank you.
0 Comments
Post a Comment