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?
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.
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.