Skip to main content
I am getting this error when I am trying to execute Auth.AuthToken.revokeAccess() from uaser after/before update trigger if a user is inactivated. Can someone please tell me why I am getting this error. I didnt find any documentaion for setCommitAllowed() method.

 

"execution of BeforeUpdate caused by: System.UnexpectedException: commits are not allowed because someone called setCommitAllowed(false), justification: doWorkAndCommit: (System Code)"
3 Antworten
  1. 5. Dez. 2014, 21:52
    This Answers Community is focused on configuration and design questions. Programmatic questions are best submitted to the developer forums at https://developer.salesforce.com where the forums and participants are geared toward programming troubleshooting and support. 
0/9000