n8n icon indicating copy to clipboard operation
n8n copied to clipboard

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

Open atolk opened this issue 1 year ago • 1 comments

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)

atolk avatar Jul 10 '24 05:07 atolk

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 dev ticket to dig into this more.

Joffcom avatar Jul 11 '24 09:07 Joffcom

We’re taking some time to review and tidy up our issue tracker. It looks like this issue hasn’t had any recent activity for the past 6 months. To keep our backlog focused on current priorities, we’re closing this issue for now.

That said, this doesn’t mean the issue is forgotten! If this is still relevant or you have more information to add, feel free to reopen it or create a new issue and we’d be happy to revisit it.

Thank you for understanding and for contributing to the project!

Joffcom avatar Mar 25 '25 04:03 Joffcom