If you want to just return the false data add a node after it with only 1 output to make sure the output is in the first output. (for example no operation node)
It is now being returned as the second output(as you have noticed) and the execute workflow node only has 1 output making it not go further with that first output.
Hope that makes sense.
But of course if you need to continue with the merge and everything @barn4k has posted a nice drawing of how to fix that
It is by design that the line is not connected. To give a bit more background of what I’m trying to do: This workflow requires an incoming invoice. It will check Harvest (bookkeeping application) if the invoice already exists, if not, it will create the expense and attach the invoice (pdf).
When the output of the IF statement is false, it means that the invoice already exists and I can skip all the next steps. So I have 2 successful outcomes:
the invoice was new, and it will be added (true branch). I want to return success with the message “Invoice added”.
the invoice already exists and all steps after the IF branch can be skipped. I want to return success with the message “Invoice already exists”.
The merge block to which you draw the line, is used to merge the json containing the ID that was just added in Harvest, together with the pdf (binary) which will be uploaded in the next step. So if no invoice needs to be added, only the binary is waiting on that merge.
Ok, back to the issue
Do I need to add a merge block to have only one output? And if so, how can the merge block proceed if only one of the two inputs will ever be there?
Well, it acting weirdly because you have two outputs. The first one is the Code node where no data has been returned (and you see that in your master workflow because the node execution order was either from left to right or from up to bottom, so it was executed first), thus your second output has been thrown away.
Can you share the workflow itself? It will be much easier to help with it. All your credentials won’t be copied, only the workflow data.
As you have a bunch of Code nodes, you can remove the Merge nodes and make the workflow more linear (the Code node is able to work with any previously executed Nodes, as well as the Edit Fields node.