+ 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