Sub-Workflow not giving back data

Hi there.

I’m using a sub-workflow in one of my workflows working with Redmine. My sub-workflow simulates pagination, so it loops over the users.json of redmine with an offset until it got all users. my last node is a code node with this code:

return [
{
json: {
list: $input.first().json.allUsers,
total: $input.first().json.total
}
}
];

that has the following output:

[

{

“list”: [

{

“id”: 31,

“login”: “test”,

“admin”: false,

“firstname”: “Test”,

“lastname”: “Here”,

“mail”: “test@test”,

“created_on”: “2025-04-30T12:55:00Z”,

“updated_on”: “2025-04-30T12:55:00Z”,

“last_login_on”: null,

“passwd_changed_on”: “2025-04-30T12:55:00Z”,

“twofa_scheme”: null

},

{

}

],

“total”: 3

}

]

Thats what I see when I click on “View sub-execution”.

BUT for some reason, my Execute Workflow Node has no output?

When I force an output, its always just empty

[

{

}

]

Can someone please explain if I do or understand something wrong?

Thats my sub-workflow:

Hi, if you use the code function in the post it’s easier to see the workflow.
do you see a response in the executions when your workflow was executed as subworkflow?

Hi there!
thanks for your response. I got it working with remaking the Loop. I think n8n had problems telling where the end of my workflow is because of the 2 loops. With 1 loop it works

1 Like

glad you solved it.

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