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
NallapatiNallapati 

"commits are not allowed because someone called setCommitAllowed(false)"

I have a Scheduled a job which calls a future method of a class. but i have received the following error Apex script unhandled exception by user/organization: ---xxxxxxxxx----/---xxxxxxxxx-- Failed to invoke future method 'public static void FunctionOne()' on class 'SchClass' for job id '---xxxxxx---'. What is setCommitAllowed() method? Thanks
Best Answer chosen by Admin (Salesforce Developers) 
NallapatiNallapati

 Got the solution , As the user who scheduled the job was deactivated.

Rescheduled the job with Active user