Sub-workflow inconsistent return data

I am testing a sub-workflow and seem to get inconsistent data from it.

In the sub-workflow, I have 3 Set nodes creating 3 separate variables. But I noticed that when I move these nodes around in the canvas, it can change the data this sub-workflow returns. I tried merging the 3 Set nodes to no avail.

Is there a way to “pick” the node to return data from?

Here is a loom video I recorded:

Parent-workflow:

Sub-workflow:

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @jtoh

The issue is that you have attached three nodes to two inputs. You’ll need the Merge node with 3 inputs for that

Ok, weird. Would be nice if the node prevented trying to put multiple nodes into a single input.

So is this the way to “pick” which node to return data from? Or is there a way to do this without merging everything into a single merge node?

You can set all variables in one node

2 Likes

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