Workflow with a set of four data will not loop. Only runs one set, then stops

I’m puzzled as to why this workflow does not loop.

It starts, then the first thing it does is look up four clients in a database. The workflow sends each object, one at a time, down the flow. It then updates the database. Its then is supposed to loop and work on the next company. But it will only run once.

There is no error message.

The return data in the last node is 90 records of computer statistics. I can share one if you need it, but this does this with four different data sets. My gut tells me it’s not the data. I do notice some different behavior in the Execute Workflow node.

There are two branches over the top of the page.

The workflow is done with that data. I am putting together a report from that, and it needs to go around for another loop. Any clues as to why it’s not looping would be greatly appreciated.

Information on your n8n setup

  • Version 1.7.1
  • SQLite database
  • n8n is running in Docker on Digital Ocean.
  • Ubuntu 22.04.3 LTS

Nevermind…

I added a noop node to the end of each branch of the workflow and looped from there. It is now looping.

Although, I’m not sure if that shouldn’t be a bug?

If the workflow has not errored out, shouldn’t it continue when the “Execute another workflow” node returns?

-Russ

If the workflow has not errored out, shouldn’t it continue when the “Execute another workflow” node returns?

This does indeed sound unexpected, though I was not able to reproduce this using a dummy workflow like below:

My sub-workflow is also just returning dummy data, nothing meaningful.

Is there a chance that just one of the responses coming from one of your earlier sub-workflow executions could have been empty? This can be hard to spot in a loop.

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