I encountered this error message recently in a function that had been okay before:
"First exception on row 0; first error: NO_APPLICABLE_PROCESS, No
applicable approval process was found".
As the message says, there is an error in the approval process. However, I just cannot find a way to solve it. Has anyone had the same problem?
The timing happened to be around the 2020 Spring critical update at the end of February.
I have another error message about the approval process which also occurred after the critical update:
"Insert failed. First exception on row 0; first error:
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, XXXXXX: execution of AfterInsert
caused by: System.DmlException: Process failed. First exception on row
0; first error: TEMPLATE_NOT_FOUND,…… "
Thanks.
Best Answer
I have solved the two problems. They have nothing to do with 2020 Spring critical update.
For the first one:
I did not meet the entry criteria for an approval process. A role that uses this approval process was not in the public group in the entry criteria.
For the second error message:
This is because I did not grant view privilege to a object for a profile that uses this object in the process.