# "For each item in a list..." workflow action fails if no items

**URL:** <https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899>\
**Category:** Bugs\
**Created:** [May 1, 2025, 3:52pm UTC](https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899 "2025-05-01T15:52:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [May 1, 2025, 3:52pm UTC](https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899/1 "2025-05-01T15:52:52Z")

</div>

I’m sure this wasn’t the case previously, but I noticed one of my workflows failed and it was because there were no items in the list I was trying to loop through.

Should the behaviour not be to continue on to any additional steps in the workflow if there are no items in the list?

Thanks!

---

<div class="post-metadata">

**Author:** ![darragh](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/darragh/32/12_2.png) [@darragh](https://community.noloco.io/u/darragh)\
**Post date:** [May 2, 2025, 9:24am UTC](https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899/2 "2025-05-02T09:24:54Z")

</div>

Hey @lukebranford - this should still be working fine, can you share the URL to the workflow and we can take a closer look?

Thanks

---

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [May 2, 2025, 11:09am UTC](https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899/3 "2025-05-02T11:09:26Z")

</div>

@darragh thanks for the reply! I’ll reach out via support 🙂

---

<div class="post-metadata">

**Author:** ![lukebranford](https://dub1.discourse-cdn.com/flex005/user_avatar/community.noloco.io/lukebranford/32/32_2.png) [@lukebranford](https://community.noloco.io/u/lukebranford)\
**Post date:** [May 2, 2025, 11:12am UTC](https://community.noloco.io/t/for-each-item-in-a-list-workflow-action-fails-if-no-items/1899/4 "2025-05-02T11:12:34Z")

</div>

> [@lukebranford](#):
>
> I’m sure this wasn’t the case previously, but I noticed one of my workflows failed and it was because there were no items in the list I was trying to loop through.

Ah, just looked at this in a bit more detail and I see the issue, actually on my end! It’s triggering a webhook to Xano API, but because there are no items, it throws an error. I’ll put in an “only continue if…” step.

Sorry for the false report, thanks again.
