No path back to referenced node with a Merge node

Describe the problem/error/question

My workflow is composed of a merge node in Append Mode which split in 2 nodes
Nodes can’t be called back and I don’t understand why

Thanks for your help

What is the error message (if any)?

No path back to referenced node [item 2] in “Get Route 1” (see the workflow)

Please share your workflow

Share the output returned by the last node

In “Get Route 1” and “Get Route 2” I would to get items, respectively, from “Route 1” and “Route 2”

Information on your n8n setup

  • n8n version: 1.42.0
  • Database (default: SQLite): PostgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main): Main, Webhooks and Agents
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Linux Debian

@ppcm ,

When using .item, n8n displays an error when:

  • The thread is broken
  • The thread points to more than one item in the previous node (as it’s unclear which one to use)

To solve these errors, you can either avoid using .item, or fix the root cause.

You can avoid .item by using .first(), .last() or .all()[index] instead. They require you to know the position of the item that you’re targeting within the target node’s output items. Refer to Built in methods and variables | Output of other nodes for more detail on these methods.

– Ref: Item linking errors | n8n Docs

Append mode in Merge (unlike Combine, for example) prevents n8n to link the items automatically. You can fix it by using first() instead of item.

1 Like

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