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
Saswat MohantySaswat Mohanty 

Deleting two records for certain objects which affects the batch scheduler class execution

Hello,

Currently in UAT environment, the batch jobs are not running and it shows the error as Apex job named "BatchQueueRunning" is already scheduled for execution.

The possible scenario is after refresh of UAT sandbox from live, two records were imported to UAT which we are unable to delete.

• one record for object "CronTrigger"
• one record for object "CronJobDetail

Also, even though we want to change the scheduler class name we can not do so as those dirty records are using the schedule apex class.

Could you please help.
MagulanDuraipandianMagulanDuraipandian
http://www.infallibletechie.com/2014/05/deletion-of-records-or-update-of-class.html

Check this

If this solves your problem, kindly mark it as the best answer.
Hit Like, if it saved your work :-)

Regards,
Magulan
http://www.infallibletechie.com