You need to sign in to do that
Don't have an account?
Alec Evans
Unable to Schedule Apex Classes
I'm trying to schedule a couple of Apex Classes to run weekly.
When I attempt this in our "Sandbox" environment I can go to Develop > Apex Classes > Schedule Apex and the available Apex Classes appear but when I try this in the "Live" environment no Apex Classes are available to schedule (they appear in the Apex Classes section but do not appear in the Schedule Apex section)
The message returned says
I have admin rights and I've tried to schedule them using our other admin users login details but with no luck.
Is this a problem with my access rights (and how do get the necessary access rights) or is there something obvious that I'm missing?
Many thanks
Alec
When I attempt this in our "Sandbox" environment I can go to Develop > Apex Classes > Schedule Apex and the available Apex Classes appear but when I try this in the "Live" environment no Apex Classes are available to schedule (they appear in the Apex Classes section but do not appear in the Schedule Apex section)
The message returned says
No records found due to one of the following:
- There are no records of this type
- You don't have permission to see any of the records
I have admin rights and I've tried to schedule them using our other admin users login details but with no luck.
Is this a problem with my access rights (and how do get the necessary access rights) or is there something obvious that I'm missing?
Many thanks
Alec
Try to run all test classes and then try again to schedule.
No sure it will work, but i had the same problem once and it fixed it.
Regards,
Jerome
Jerome - Ran the tests and all pass but still unable to select them in the scheduler
Robert - There are 7 jobs running in the Admin Setup > Monitoring > Scheduled Jobs
Any help would be gratefully recieved if anybody could help point me in the right direction.
The two Apex Classes are
- LinksUpdateBatch
- TableUpdateBatch
I'd like them both to run weekly on Sunday evening or Monday morningMany Thanks
here is the documentation :
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm
here is the exemple code :
scheduledMerge m = new scheduledMerge();
String sch = '20 30 8 10 2 ?';
String jobID = system.schedule('Merge Job', sch, m);
replace "scheduledMerge" by your schedulable class.
and here is the format of the "sch" string :
Seconds Minutes Hours Day_of_month Month Day_of_week optional_year
Regards,
Jerome
Tried to schedule via the developer console to run at 4am each morrning but returns an error saying that "managed installed classes cannot be saved."