How to handle failed execution workflows

Describe the problem/error/question

I see that all workflow executions are logged. I would like however, to track in semi automated manner failed executions. My thought is - I see for each workflow > Settings, there is “Error Workflow”, where I can set workflow to handle error.
I would like to create a simple workflow, which I should use for all my workflows. Its goal should be to take failed workflow name and send the name to dedicated Slack channel. I know how to setup Slack node in workflow, I am not sure how to pass from failed workflow its name to the error handling workflow, so I can then send to Slack channel.
I would appreciate your suggestion/hints.
Thanks!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

hello @Angel_Todorov

You can set the error workflow as follows

1 Like

The solution by @barn4k will work. Remember to set the name of your error workflow to the one created

Good thing you can use one error workflow to handle all the errors on any excecutions in n8n

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.