Issue: Unable to Read Data When Merging Multiple Set Nodes

Hi,
I’m facing an issue in n8n when trying to merge three different Set nodes into a single Set node that should collect all three values.

:small_blue_diamond: Scenario:

  • I have 3 Set nodes, each setting a different field (like value1, value2, value3).
  • I connected all three Set nodes directly to a new Set node to combine the values.
  • Inside the final Set node, I tried accessing values using expressions

But the result is always [undefined].

:small_blue_diamond: What I’ve tried:

  • If I connect only one Set node to the final Set node, the value is accessible correctly.
  • I also tried using a Merge node with Mode: Append and Number of Inputs: 3, but it only returns one item and doesn’t combine the fields into a single item as I expected.

:small_blue_diamond: What I want to achieve:
I’d like to merge data from the three Set nodes into one item so I can access all the values together in the next steps.


:question: My Questions:

  • What is the correct way to merge multiple Set nodes so that their fields are combined into a single item?
  • How can I reliably access values from multiple sources without getting undefined?

Thanks in advance for any help or clarification

Hi @ayman2011a

If I understood you correctly, here’s how you can do it:

3 Likes

Thank you so much for your clear explanation! I switched the Merge node to Combine By Position (Merge by Index) and it’s now working perfectly—all three values are merged into one item. Really appreciate your help!

1 Like

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