Why is my Process (Process Builder) not triggering an Approval Process properly?
|Knowledge Article Number||000213924|
|Description||Process is built, that would trigger an Approval Process once a certain criteria is met. After ensuring that all requirements are sufficed, it's still not working as expected. It is running into issue with error message
Workflow action failed to trigger flow
The record couldn't be saved because it failed to trigger a flow
|Resolution||Run the debug log to narrow the error. Reference - Debug Log
Debug log showing that the approval process is being ran multiple times:
16:43:31.414 (2414057362)|FLOW_ELEMENT_ERROR|Cannot submit object already in process.
One way to address this is to make sure that the checkbox "Allow Process to evaluate a record multiple times in a single transaction" is UNCHECKED,
... and the "Do you want to execute the actions only when specified changes are made to the record" is CHECKED.
Doing so will prevent the process from looping again and again and the error will not happen anymore