Yesterday morning, one of the batch in my company failed with the following error and I had to debug:
The record couldn’t be saved because it failed to trigger a flow.
A flow trigger failed to execute the flow with version ID 200L0000000DApf”
I knew that we do not have any Visual flows hence it should be one of the processes in the process builder failed, but how do I find out the name of the process which has failed?
One of the easiest option is to take the version ID as mentioned above(200L0000000DApf) and go to https://workbench.developerforce.com->Info > Metadata Types & Components. Click ‘Expand All’ and Search for the ID(200L0000000DApf). You will know the name of the process which has failed and if you want to know in which step it has failed, obviously put a debug log and simulate the scenario to get the error. Then, you can check the log for more information.
Let me know for any questions. Thanks!
Hi Mani. Using workbench is one way to determine the issue. Another way is to Open https://…salesforce.com/designer/designer.apexp#Id=YOURFLOWIDHERE where YOURFLOWIDHERE is the version ID value from the error. That opens the Flow designer with the process builder or flow that caused the error.
For more details, see http://metillium.com/2017/04/determine-the-flow-or-process-builder-from-the-error-messages-version-id/
Luke
LikeLike
Good one, Thanks Luke:)
When I tried it, SFDC took sometime to open the process in the flow designer(it did open) and also as you mentioned in the link http://metillium.com/2017/04/determine-the-flow-or-process-builder-from-the-error-messages-version-id/, though the process is opened in the flow designer, the culprit is the process and not a flow.
LikeLike