Again Merge Node triggers unwanted second branch of IF statement (I use latest cloud version of [email protected])

Describe the problem/error/question

When I try to execute IF mode logic I get the same unwanted execution of the second branch by Merge node, when in production mode!!! This is perfectly described in this thread:

When in debug mode, it works as expected (does not trigger second IF branch).

And this is latest ([email protected]) version of cloud n8n!

Any ideas how to fix this ASAP? Is there any way for n8n to fix this returned bug ASAP?

My task is the following:

I need to execute sub-process for 1 or many items.

If processing node returns “result”: “OK” I process item in one If branch, otherwise I process it differently in another If branch.

Merge is used at the end to collect all inputs before sub workflow exists.

Currently Merge works correctly ONLY for use case with many input items and when OK and Non OK are present in the output (both IF node branches are executed at least once).

Merge triggers unwanted second IF node branch, in case I got one input item, or all input items receive processing result OK or all of them receive Non OK (basically when ONLY single IF node branch was used)…

Would you like to post a short repro of this issue?

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