Error handling section is not running in flow designer.

Johannes Mweli
Giga Guru

Hi ServiceNow Community Developers,

 

In flow designer I have the Error Handler button turned on and I have actions under it to run if flow errors out. The problem I am running into though is that when a flow action runs into an error it keeps going and runs the next actions. When I check the logs I can see that it did run into an error however the error was not caught. The State message says “Completed (Error Skipped)” and the actions under the error handling section did not run. The desired behavior is for flow to stop running as soon as it encounters an error, at that point it should skip all the other actions and go and run the error handing actions.

 

Would you guys please advise as what is it that I am doing wrong which causes my flow to not run the error handling actions.

 

Thanks,

Johannes  

1 ACCEPTED SOLUTION

Hi Michael, yes the If logic works as well. I only noticed that after I had already implemented the Error handler that I did not even need the Error handler after all because the If Logic does exactly what I wanted to accomplish with the Error handler.

 

To get the Error handler to work this is what the vendor advised me to do - I had to create a custom "Create issue" action and then go to the "Don't treat as error" flag in the Error Evaluation and uncheck that so that the failures are treated as errors. My Error Handler is now working as expected I have even deployed the integration into production.

View solution in original post

5 REPLIES 5

Community Alums
Not applicable

Thank you very much.  

 

I checked out my custom action and as you mentioned, the "Don't treat as error" flag was checked in my Error Evaluation step so I unchecked them and now they are being treated as errors.