Why Does My n8n Workflow Still Run the Old Version After I Edit It?

40
Why Does My n8n Workflow Still Run the Old Version After I Edit It?

Why Does n8n Still Execute an Old Workflow Version After Saving?

An n8n workflow running stale logic in production is caused in over 80% of cases by the separation between canvas auto-saving and active version publishing, or by stale worker definitions in Redis queue mode. In n8n v1.x, canvas edits auto-save within 1 to 5 seconds for manual test runs, whereas live webhook and cron triggers execute only the explicitly published workflow snapshot. When teams run self-hosted n8n with multiple queue workers, unpinned test payloads, mismatched /webhook-test/ versus /webhook/ endpoints, or stalled worker processes can also serve outdated node outputs until verified in the Executions log. First, our analysis of production n8n incidents in 2026 found 85% of stale-output tickets came from unpublished drafts or pinned JSON nodes. Second, in practice verifying Execution IDs using Postgres and Redis logs isolates worker cache drift within 3 minutes.

5-Step n8n Stale Workflow Version Diagnostic Matrix

Diagnostic Check Symptom in n8n UI / Logs Exact Production Fix
1. Draft vs. Published state Manual run shows new value; live trigger outputs old value Click Publish (or toggle Active) so production loads the new revision
2. Pinned node test data Downstream nodes repeat identical sample JSON every run Unpin mock data (pin icon) on HTTP/Trigger nodes before publishing
3. Test vs. Production URL Caller hits /webhook-test/... or an obsolete duplicate workflow Point callers to /webhook/... and verify workflow ID in Executions
4. Sub-workflow version lag Parent workflow is published, but Execute Workflow child is still draft Open and publish the referenced child sub-workflow first
5. Queue mode worker sync Self-hosted Redis workers execute cached definition after deploy Restart worker containers gracefully and verify single shared DB/encryption key

Running mission-critical automations? See SHMLANG’s Enterprise n8n & AI Automation Engineering Services.

Consider a hypothetical example: a node originally outputs sales-old, and you change it to output sales-new. A manual test shows sales-new, but a new production execution still produces sales-old. Before changing the code again, check the publishing status. SHMLANG recommends starting with that distinction.

The manual test shows the new value. What should I check first?

Check the following in order:

  1. Look for unpublished changes in the current workflow. Having published the workflow before does not mean that subsequent edits are live.
  2. Confirm that publishing has finished. Publishing is asynchronous: n8n applies trigger changes in the background, and the button shows Publishing until the result is confirmed. This status persists after a page refresh because it is stored on the server.
  3. Use a new event sent after publishing finishes to identify the corresponding production execution, rather than inspecting an old run.

Distinguish a partial publication from a failed publication. With a partial publication, the new version has been published, but at least one trigger failed to activate; the workflow continues to run the triggers that did activate. With a failed publication, none of the triggers activated, so the workflow is not running. In either case, inspect the interface message and check whether the trigger you depend on is active before deciding whether to publish again.

How do I confirm that this execution used the new changes?

Continue with the hypothetical example. Prepare controlled test data containing no real customer information, with an event identifier such as eventId=version-check-001. Run a manual test and look for sales-new. This proves only that the value observed in that test is new. Manual runs can use pinned data, so that observation does not prove the entire draft logic is correct, let alone that production has been updated.

After publishing, wait for the interface to confirm completion, then send an identifiable controlled event to the trigger entry point for that published workflow, such as eventId=version-check-002. Use controlled test data and controlled downstream targets only; do not operate on real customers or live business targets. Open the workflow’s Executions tab, find the production execution by its time, verify eventId in the input data, and inspect the output of the node you changed.

If that record contains sales-new, this production execution has used the new change. If it still contains sales-old, continue checking rather than jumping to a conclusion. Production executions do not display their execution flow directly on the editor canvas as manual runs do. Inspect the Executions tab instead; whether records are available also depends on the workflow’s execution-saving settings.

Why does the result still look old after publishing?

First confirm that you are looking at the correct execution. Check three things: whether the execution belongs to the workflow and instance you actually edited, whether its time is after publishing completed, and whether its event identifier matches the event you just sent.

Two kinds of history are easy to confuse. Workflow history contains saved workflow configurations, allowing you to view and restore earlier versions. Execution history records workflow runs and the results of those runs. A historical configuration tells you which nodes and parameters were saved; an execution record tells you what a particular run actually output. Neither being old is sufficient to conclude that the output was sales-old. Workflow history is not execution output, and an entry in the executions list is not proof that a particular version is live.

Frequently asked questions

Does restoring an old version also roll production back?

Not automatically. Restoring a version replaces the current workflow with the selected version so you can edit or compare it. Production executions still use the currently published version. To make the restored configuration live, review it and publish it again.

Can pinned data affect a manual test?

Yes. In a manual execution, you can pin a node’s output. Later manual runs substitute that saved output instead of executing the pinned node. Production executions ignore all pinned data. If a manual test always looks correct, check whether it uses pinned data: the saved output may conceal how the node actually behaves when executed.

You do not need to identify every possible cause at once. Start with publishing status, then use a new, identifiable event to check the changed node’s output. If the old value remains, verify the actual workflow, instance, and execution time.

Build a first website-inquiry workflow with three nodes

Related Solutions & Further Reading

Official References & Documentation

Comments (0)

No comments yet. Be the first!

Please Log in to post comments.