# How does split in batches understand how many times it has to run?

**URL:** <https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738>\
**Category:** Questions\
**Tags:** splitinbatches\
**Created:** [August 24, 2023, 1:33pm UTC](https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738 "2023-08-24T13:33:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![timautomation](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@timautomation](https://community.n8n.io/u/timautomation)\
**Post date:** [August 24, 2023, 1:33pm UTC](https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738/1 "2023-08-24T13:33:53Z")

</div>

## Describe the problem/error/question

The split in batches should run like 19 times for me but it is only running twice. I do not understand how it calculates how many times it has to run? Can someone explain please 🙂

Kind regards.

---

<div class="post-metadata">

**Author:** ![BramKn](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bramkn/32/11894_2.png) [@BramKn](https://community.n8n.io/u/BramKn)\
**Post date:** [August 24, 2023, 1:35pm UTC](https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738/3 "2023-08-24T13:35:53Z")

</div>

Hi @timautomation

It keeps track of that inside the node. it can be found in the context of the node.  
If it isn’t running as often as you expect it can also be that it simply isnt getting another input making the loop stop as the node is simply not triggered.

If you need specific help with your flow please show us what is going wrong.

---

<div class="post-metadata">

**Author:** ![timautomation](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@timautomation](https://community.n8n.io/u/timautomation)\
**Post date:** [August 24, 2023, 2:14pm UTC](https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738/4 "2023-08-24T14:14:06Z")

</div>

Thanks for your answer, I still do not understand how it keeps track. But I will close this thread and make a new one as im not using the Split in batches node anymore.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 31, 2023, 2:14pm UTC](https://community.n8n.io/t/how-does-split-in-batches-understand-how-many-times-it-has-to-run/29738/5 "2023-08-31T14:14:25Z")

</div>

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