Hi there,
I have a workflow where I first need to get all the data paginated, so I’d run it 2 or 3 times depending on the data and then I want to loop over all the items.
For better debugging and tracking I use “Loop Over items”
I observed weird behaviour in my workflow, so I created a minimal version with demo data to simulate the behaviour below.
What it should do:
- create 10 sample data, then loop over the 10 items
- create 10 more sample data, then loop over the other 10 items.
- result: looped over 20 items.
What it does:
- creates 10 sample data and loops over the 10 items
- creates 10 more sample data and then it does not loop over it, instead, they immediately jump to “done” in the “Loop Over items” node.
And the weirdest thing is that the “done node” shows 30 items done, although in total l only pushed 2x10 = 20 items to the node.
Did I oversee something here or is this a bug?
Thanks for your support.
Screenshot:
Here is the demo workflow:
Debugging infos:
- n8nVersion: 1.68.0
- platform: npm
- nodeJsVersion: 20.6.1
- database: sqlite
- executionMode: regular
- concurrency: -1
- license: community