Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge not returning data in test mode #12436

Open
geggeri opened this issue Jan 2, 2025 · 6 comments
Open

Merge not returning data in test mode #12436

geggeri opened this issue Jan 2, 2025 · 6 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@geggeri
Copy link

geggeri commented Jan 2, 2025

Bug Description

A merge node does not return any items when testing a node after the merge. The merge uses the append option, but one of the appended branches never reaches the merge. When running the full workflow it works as expected, but when testing from within a node (after the merge), the merge does not return any items

To Reproduce

Create a workflow with 3 branches. Let the first branch end without result and let the two other branches return something.

Each of the branches should be connected to a merge node using the append option.

Expected behavior

To work as it does on a full run.

Operating System

n8n cloud

n8n Version

1.70.4

Node.js Version

n8n Cloud

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 2, 2025

Hey @geggeri,

We have created an internal ticket to look into this which we will be tracking as "N8N-8037"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 2, 2025
@MarcL
Copy link
Contributor

MarcL commented Jan 7, 2025

Hi @geggeri,

I've been trying to recreate this but I can't seem to get it to happen.
Can you clarify your reproduction of the issue please?

Here's what I've tried:

CleanShot 2025-01-07 at 12 13 23

Branches 2 and 3 set some data but branch 1 doesn't.

In the NOOP node I get the following:

CleanShot 2025-01-07 at 12 14 21

Am I missing something in my workflow? Thanks!

@geggeri
Copy link
Author

geggeri commented Jan 7, 2025 via email

@luizv
Copy link

luizv commented Jan 9, 2025

I'm guessing I got a related problem. It was happening on 1.72.x and still on after I just updated on 1.73. Tested on Chrome and Safari. Running Cloud. This problem occurs everytime i have to merge two streams, not necessarily with merge node.

Recording:

As you can see on the recording, it bugs when there is a merge earlier in the flow.

And the flow I'm breaking in the recording is a dead branch in this execution:

CleanShot 2025-01-09 at 15 47 03@2x

Other tests:

  • If I just ran through test workflow button, it runs everything, and shows me the inputs on nodes after the merge. Still nothing shows after I hit "test steps" or "run previous nodes".
  • Beside noOp node, I also tried Merge with Append, and got the same result.

@MarcL
Copy link
Contributor

MarcL commented Jan 15, 2025

@geggeri - No problem. Thanks for the update. Let us know if you hit any more issues.

@luizv - Thanks for the extra info. Let me try to recreate it locally.

@MarcL
Copy link
Contributor

MarcL commented Jan 15, 2025

@luizv - Have you got a simple reproduction (without using external APIs if possible)? Can you post the JSON if you have?
I've tried a simple workflow with an If and Merge node and I can't recreate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

4 participants