# Loop Over Items Bug?

**URL:** <https://community.n8n.io/t/loop-over-items-bug/62982>\
**Category:** Questions\
**Created:** [November 25, 2024, 4:53pm UTC](https://community.n8n.io/t/loop-over-items-bug/62982 "2024-11-25T16:53:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![passana](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/passana/32/11080_2.png) [@passana](https://community.n8n.io/u/passana)\
**Post date:** [November 25, 2024, 4:53pm UTC](https://community.n8n.io/t/loop-over-items-bug/62982/1 "2024-11-25T16:53:09Z")

</div>

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:

1. create 10 sample data, then loop over the 10 items
2. create 10 more sample data, then loop over the other 10 items.
3. result: looped over 20 items.

What it does:

1. creates 10 sample data and loops over the 10 items
2. 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:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/b/bbe43ed38d81b1a834408dba0563338d6be83fd9.png)

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

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [November 25, 2024, 4:53pm UTC](https://community.n8n.io/t/loop-over-items-bug/62982/2 "2024-11-25T16:53:10Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![passana](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/passana/32/11080_2.png) [@passana](https://community.n8n.io/u/passana)\
**Post date:** [November 25, 2024, 6:40pm UTC](https://community.n8n.io/t/loop-over-items-bug/62982/3 "2024-11-25T18:40:02Z")

</div>

> [@passana](#):
>
> Debugging infos:
> 
> - n8nVersion: 1.68.0
> - platform: npm
> - nodeJsVersion: 20.6.1
> - database: sqlite
> - executionMode: regular
> - concurrency: -1
> - license: community

added: Debugging infos:

- n8nVersion: 1.68.0
- platform: npm
- nodeJsVersion: 20.6.1
- database: sqlite
- executionMode: regular
- concurrency: -1
- license: community

---

<div class="post-metadata">

**Author:** ![ihortom](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ihortom/32/11473_2.png) [@ihortom](https://community.n8n.io/u/ihortom)\
**Post date:** [November 25, 2024, 7:35pm UTC](https://community.n8n.io/t/loop-over-items-bug/62982/4 "2024-11-25T19:35:57Z")

</div>

Hey @passana , the Loop node has to be reset for the 2nd set of the items to be iterated. See [Loop Node Only Processes the First Item - How to Fix? - #10 by ihortom](http://community.n8n.io/t/loop-node-only-processes-the-first-item-how-to-fix/56727/10) for details.

Also, when you are talking about pagination do you imply HTTP Request node to get the paginated data? The node has built-in pagination mechanism. Once configured correctly, no loop is needed.

---

<div class="post-metadata">

**Author:** ![passana](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/passana/32/11080_2.png) [@passana](https://community.n8n.io/u/passana)\
**Post date:** [November 26, 2024, 9:43am UTC](https://community.n8n.io/t/loop-over-items-bug/62982/5 "2024-11-26T09:43:08Z")

</div>

Thanks @ihortom , that seems to work.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 24, 2025, 9:43am UTC](https://community.n8n.io/t/loop-over-items-bug/62982/6 "2025-02-24T09:43:22Z")

</div>

Closed on February 24, 2025, 9:43am UTC

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