You need to sign in to do that
Don't have an account?
PoornaPrabhu Seenivasan
Approval.lock() and Approval.unlock() methods return System.UnexpectedException: null
Hello All,
I'm getting a System.UnexpectedException: null error while trying to unlock or lock the records from a Queueable Apex job.
I would need someone's advise to resolve this error as soon as possible.
My scenario is as below:
I want to update a set of opportunities out of which a few of them are locked by the approval process.
So I want to unlock these opportunities, update a particular field in the opportunity and lock the record again via apex.
I have used the standard approval process.
Please advise.
I'm getting a System.UnexpectedException: null error while trying to unlock or lock the records from a Queueable Apex job.
I would need someone's advise to resolve this error as soon as possible.
My scenario is as below:
I want to update a set of opportunities out of which a few of them are locked by the approval process.
So I want to unlock these opportunities, update a particular field in the opportunity and lock the record again via apex.
I have used the standard approval process.
Please advise.
I am also facing same issue. Could you please let us know if you got solution?
Thank you-
Shrivaths
//the results of record unlocks by System.Approval.unlock() methods.
//A Boolean value that is set to true if the unlock operation is successful
//for this object, or false otherwise.
Boolean result = System.Approval.unlock(oppId).isSuccess();
System.UnexpectedException: null