This n8n workflow is designed to help users identify workflows potentially affected by the upgrade to n8n version 0.214.3. The upgrade introduced changes in how nodes with multiple outputs (such as ‘If’, ‘Switch’, and ‘Compare Datasets’) are wired, which could cause issues if workflows weren’t updated accordingly.
The workflow operates as follows:
1. It exposes a webhook endpoint (`/webhooks/affected-workflows`) for triggering the check.
2. It uses the ‘Get all workflows’ node with n8n API credentials to retrieve all existing workflows.
3. The ‘Parse potentially affected workflows’ code node analyzes each workflow, inspecting connections to nodes with multiple outputs. It identifies workflows where such nodes have inconsistent or empty output connections that might result from the upgrade.
4. The list of potentially affected workflows and nodes is compiled.
5. An HTML report is generated displaying these workflows with links to their n8n editor pages.
6. The report is served via the ‘Serve HTML Report’ node, which dynamically adds links to each workflow, making it easy for users to locate and review them.
This workflow is especially useful for administrators managing multiple workflows post-upgrade, ensuring they verify and correct node wiring to prevent workflow errors.
Reviews
There are no reviews yet.