Execution flow doesn't stop at merge node even though not all the inputs are given

Describe the problem/error/question

Hello. I have a workflow in which there is a merge that takes in input1 a file and in input 2 some data from a If node. The issue is that even though it receives only the file data, while the if data goes on the other branch, the flow of execution does not stop at that merge, therefore it results in executing a subworkflow without the proper data.

Why is that? n8n ai tells me that the merge should stop there the execution flow, but it does not seem to happen. How can I modify the node/structure in order to make it happen?

Please share your workflow

Information on your n8n setup

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

What is the use case of merge nodes in your workflow? It seems like you don’t need them. If you want to reference data from the webhook you can do that using expressions.

1 Like

Hey thanks for the answer! I can’t manage to pass the file that comes from the webhook to the subworkflows…

In the latest version of n8n, you can reference binary data using expressions. Here my node Convert to File outputs binary data. I can reference this data in the next nodes using an Edit Fields node as shown in the image.

In your case, you will add an Edit Fields node and write the same expression as mine. You have to change Convert to File into the name of your webhook which is Webhook in your workflow.

2 Likes

Thank you very much! Do you have any insight about the merge though?

1 Like

Here is the official documentation on the merge node. It’ll guide you through its usage and provide templates.

1 Like

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