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
kranjankranjan 

Not able to schedule a job

Hi,

 

I have created a new sandbox from a enterprise org and I am trying to schedule a job using the following code in the sandbox.

 

String actJobId = System.schedule('ActScheduler', system.now().addSeconds(30).format('ss mm HH dd MM ? yyyy'), new ActivitiesJob2Scheduler());

 

But it throws the following exception though there is no job for this which is showing under scheduled jobs. 

 

System.AsyncException: The Apex job named "ActScheduler" is already scheduled for execution.

Does anyone has any idea why this is happening like this and why it is not able to schedule the job.

 

Regards

Kamal Ranjan

Vinit_KumarVinit_Kumar

The error is Self explanatory,you already have a Job schdeduled with the same name.Please check your Scheduled Jobs under Monitoring Section  and if the Job is present you need to delete it to schedule this one or else you can name this to something other than ActScheduler and then you will be able to do that.

MiddhaMiddha

Vinit, I am working on the same problem above. We do not have any jobs scheduled with this name. We hvae checked the Monitoring section and queried the Apexjob records and couldnt see any job with that name. 

 

Its wierd that we still get this error.

Vinit_KumarVinit_Kumar

Gulshan,

 

Then I woujld suggest you to log a case with Support,they can remove any hidden job for you :)