Multiple inputs with the same name not respecting the data pills

So I have an on form submission trigger, with a field named ‘Video link’. The next step, I split and am performing two AI transform javascript functions to sanitize the video link for future steps, then rejoin to continue the workflow.

So Step/node 1, ‘Video link’ = https://www.youtube.com/watch?v=K-cTuX_QVac&t=777s
Step/node 2A, ‘Video link’ = https://www.youtube.com/watch?v=K-cTuX_QVac
Step/node 2B, ‘Video link’ = K-cTuX_QVac

In step 3… Why are my ‘Video link’ data pills unable to differentiate when I drag them in from step/node 1 vs. step/node 2A vs. step/node 2B? The expression which comes in, no matter which pill I drag it from, always says {{ $json[‘Video Link’] }}… so what determines order?

This seems like a bug. When you drag and drop a data pill, you would expect the expression to adjust dynamically based on which node you are dragging it from. I would think just having the same name should not create a different result. In other words, the expression should also tie to the NODE.

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:

So I fixed this by adding the node name before the expression pill.

For example:
As opposed to: {{ $json[‘Video Link’] }}
I added in: {{ $(‘Edit Fields’).item.json[‘Video Link’] }}
Or I added in: {{ $(‘On form submission’).item.json[‘Video Link’] }}

I still think this is a bug. Not sure if all of n8n works like this when you drag in data pills or if its just limited to youtube get video… but when you drag in a data pill, the JMESpath should differentiate automatically between the nodes the pill is coming from.

1 Like

Update – this behavior seems to be inconsistent node to node and input to input.

I have seen it in multiple nodes (e.g. postgres insert/update, youtube get channel, youtube get video)

I drag one input in, it may show the full path. I drag another input into the same field, it may show the shortened path.

Any poor sap coming across this, please vote here: Make input pills default to full JSON path and automatically update in expressions

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