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

Sub-Workflow returns only data from the first run to parent WF #9989

Open
atolk opened this issue Jul 10, 2024 · 1 comment
Open

Sub-Workflow returns only data from the first run to parent WF #9989

atolk opened this issue Jul 10, 2024 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@atolk
Copy link

atolk commented Jul 10, 2024

Bug Description

The task is: scrap data from the web-site.
I have two WF:

  1. Master for orchestration
  2. Sub-WF: to scrap all the urls and pass them back to parent

Here is my sub-WF. Please notice it finished with 4 items coz it scraps 4 pages.
image

But when i call it from Master sub-WF returns only one item from the very first run.
image

Also i notice if i put CODE Node at the pipeline end it'll be executed 3 times in this case regardless of "Execute Once for all Item" setting..

To Reproduce

BUG_Master_WF.json
BUG_Sub_wokflow.json

Expected behavior

I expect Sub-WF will return all the items to the parent.

Operating System

docker image

n8n Version

1.48.3 (docker)

Node.js Version

20.14.0

Database

SQLite (default)

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jul 11, 2024

Hey @atolk,

Thanks I have managed to reproduce ti with your workflow but not with a simplified version which was odd but I have created NODE-1492 as the deb ticket to dig into this more.

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jul 11, 2024
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

2 participants