A couple of checks that have been voided by the claim handler have encountered a Illegal State Exception in one of our workflows. The check is in status Requested and when clicking Void doesn't get set to Pending void instead displays an error This operation could not be completed because the check's status has changed. The status may have been updated by the system or another user. If so, it may take several minutes before you see the update.
The void button is calling Check.VoidCheck() I expect that this function sets the check to pending void at some point but it doesn't happen.
I am unable to reproduce the bug in lower env.
I was unable to locate the logic that sets a check to pending void and re running the workflow or triggering void check again produces the same outcome. Is it possible that the check is stuck somehow, somewhere?
Why is the Check.voidCheck() not setting the check to pending void? is there any condition?