You need to sign in to do that
Don't have an account?
Alan McSporran
Getting error trying to abort scheduled batch job (Invalid parameter value "000000000000000" for parameter "id")
I've got a CronTrigger entry on a customer's site that has an empty CronJobDetailId that's probably preventing a new System.scheduleBatch() call from running. When I run:
System.abortJob('08e9000000rydbcAAA');
An exception is thrown:
System.StringException: Invalid parameter value "000000000000000" for parameter "id".
How can I abort this job?
- Thanks
System.abortJob('08e9000000rydbcAAA');
An exception is thrown:
System.StringException: Invalid parameter value "000000000000000" for parameter "id".
How can I abort this job?
- Thanks
Try this,
CronTrigger[] cronlist = [select Id from CronTrigger where ownerId=:UserInfo.getUserId()];
for(CronTrigger obj:cronlist) System.abortJob(obj.Id);
Thanks and Regards,
Mrunali Gaonkar.