# ResourceNotFoundError: Unable to find dataSource

**URL:** <https://community.appfarm.io/t/resourcenotfounderror-unable-to-find-datasource/1313>\
**Category:** Bug reports\
**Tags:** service\
**Created:** [July 11, 2024, 2:51pm UTC](https://community.appfarm.io/t/resourcenotfounderror-unable-to-find-datasource/1313 "2024-07-11T14:51:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petter2](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/petter2/32/1464_2.png) [@petter2](https://community.appfarm.io/u/petter2)\
**Post date:** [July 11, 2024, 2:51pm UTC](https://community.appfarm.io/t/resourcenotfounderror-unable-to-find-datasource/1313/1 "2024-07-11T14:51:12Z")

</div>

![Skjermbilde 2024-07-11 kl. 16.43.24](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/7/7dc680f632eb3adf16544be5693ee92474d292c7.png)

Hey, I’m making a service where we call an external API and iterate the responses from it.

I have made a runtime data-source of my responses. I want to iterate it and select the object in context, but I get the error in the attached image.

This iteration is encapsulated by two iterating data-sources, so it is on level 3 of a nested iteration. Could this be the reason?

---

<div class="post-metadata">

**Author:** ![petter2](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/petter2/32/1464_2.png) [@petter2](https://community.appfarm.io/u/petter2)\
**Post date:** [July 12, 2024, 9:24am UTC](https://community.appfarm.io/t/resourcenotfounderror-unable-to-find-datasource/1313/2 "2024-07-12T09:24:56Z")

</div>

I’ve tried investigating this further, but I still can’t find a logic answer to the issue. I’ve now changed the logic so that I add all responses to a data source so that I can iterate over them at the end of the action, outside the previous iterations.

I still get the same error, and even when trying to read a different data source and select context there does not work. The action nodes in the image now also give me the resource not found error.

Any idea what’s causing this?

 ![Skjermbilde 2024-07-12 kl. 11.23.18](https://europe1.discourse-cdn.com/flex013/uploads/appfarm/original/2X/1/15f0746346aa7b71309ea9f85f3f78287ee71221.png)

---

<div class="post-metadata">

**Author:** ![ErikAKSkallevold](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/erikakskallevold/32/1378_2.png) [@ErikAKSkallevold](https://community.appfarm.io/u/ErikAKSkallevold)\
**Post date:** [July 15, 2024, 7:52am UTC](https://community.appfarm.io/t/resourcenotfounderror-unable-to-find-datasource/1313/3 "2024-07-15T07:52:04Z")

</div>

Thank you for reporting this to the Community 😄

I was able to replicate your issue with 2 levels of nested iterations and a set selection.  
I have registered a challenge for the bug, as the number of iterations should not affect `Set Selection`.

// Erik
