# Loop not processing all items

**URL:** <https://community.n8n.io/t/loop-not-processing-all-items/94059>\
**Category:** Questions\
**Tags:** loop-over-items\
**Created:** [March 28, 2025, 2:43pm UTC](https://community.n8n.io/t/loop-not-processing-all-items/94059 "2025-03-28T14:43:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Marques](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/joao_marques/32/53237_2.png) [@Joao\_Marques](https://community.n8n.io/u/Joao_Marques)\
**Post date:** [March 28, 2025, 2:43pm UTC](https://community.n8n.io/t/loop-not-processing-all-items/94059/1 "2025-03-28T14:43:48Z")

</div>

Hello!

So I am making a workflow to fetch all my Facebook ad accounts and then fetch all campaigns in each ad account and save it into MySQL.

My issue is that everything is running perfectly except the loop is not running through all the items I have a total of 73 accounts and the loops is only running 35 accounts, then stops without any error… It just stops.

Anything I can do to fix this?

 ![Screenshot 2025-03-28 at 14.38.49](https://europe1.discourse-cdn.com/n8n/original/3X/6/8/68592197d18d21032b389ee21f5f9faae1aea081.png)

## Information on your n8n setup

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

---

<div class="post-metadata">

**Author:** ![Olek](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/olek/32/59619_2.png) [@Olek](https://community.n8n.io/u/Olek)\
**Post date:** [March 28, 2025, 2:52pm UTC](https://community.n8n.io/t/loop-not-processing-all-items/94059/3 "2025-03-28T14:52:25Z")

</div>

A blind shot: MySQL node output is one item short. This might have blocked the loop if the node doesn’t return any data at some point.

You may probably overcome this by setting node to Always Output Data.

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

Unless you the error is logical, then you need to dig deeper.

If the above helps you to resolve the issue, please mark this post as a ✅ Solution.

---

<div class="post-metadata">

**Author:** ![Franz](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/franz/32/66008_2.png) [@Franz](https://community.n8n.io/u/Franz)\
**Post date:** [March 28, 2025, 2:54pm UTC](https://community.n8n.io/t/loop-not-processing-all-items/94059/4 "2025-03-28T14:54:06Z")

</div>

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

I suggest to do it this way.  
Sometimes there are troubles when there are coming more items back, than going out of a loop node.

---

<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:** [April 4, 2025, 2:54pm UTC](https://community.n8n.io/t/loop-not-processing-all-items/94059/5 "2025-04-04T14:54:37Z")

</div>

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