You need to sign in to do that
Don't have an account?
Getting Organisation Administration locked Error
Hi,
I am getting this error Getting Organisation Administration locked Error even there were no schedulable jobs or batch jobs or test classes in queue or running. I have tried the following :
List<AsyncApexJob> ctList = [Select a.Status From AsyncApexJob a where status!='Completed' ];
for(AsyncApexJob ct : ctlist){
system.abortjob(ct.id);
}
List<ApexTestQueueItem> items = [Select Id,ApexClassId,Status,ExtendedStatus,ParentJobId from ApexTestQueueItem where Status != 'Completed'];
for(ApexTestQueueItem atqi : items) {
atqi.Status = 'ABORTED';
}
update items;
List<CronTrigger> ctList = [Select c.State, c.Id From CronTrigger c where state!='COMPLETE' limit 50000];
for(CronTrigger ct : ctlist){
system.abortjob(ct.id);
}
But I didnt find any change. Please help me out.
Thanks
This can happen when a code deploy gets interrupted in the middle. The server side has to finish timing out before the transaction is unlocked. It will fix itself.