# Unable to find collection proxy component (SOLVED)

**URL:** <https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758>\
**Category:** Bugs\
**Created:** [March 9, 2021, 3:30pm UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758 "2021-03-09T15:30:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lex](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lex/32/23856_2.png) [@Lex](https://forum.defold.com/u/Lex)\
**Post date:** [March 9, 2021, 3:30pm UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758/1 "2021-03-09T15:30:36Z")

</div>

Using Defold 1.2.180

I have a collection proxy component,  
if I load it using  
`msg.post(url,"load")`  
 → it works

if I try to check the missingresources using  
`local missing_resources = collectionproxy.missing_resources(url)`

then I get:

> Unable to find collection proxy component

i can’t understand what’s happening. Help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Lex](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lex/32/23856_2.png) [@Lex](https://forum.defold.com/u/Lex)\
**Post date:** [March 9, 2021, 4:38pm UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758/2 "2021-03-09T16:38:44Z")

</div>

OK I found out how to solve this.

You have to call the collectionproxy.missing\_resources function from a script **in the same object as the collection proxy**

Didn’t see that mentioned, or maybe my understand of Defold is still limited. Hope it can help some people with the same problem!

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 9, 2021, 6:48pm UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758/3 "2021-03-09T18:48:59Z")

</div>

> [@Lex](#):
>
> You have to call the collectionproxy.missing\_resources function from a script **in the same object as the collection proxy**
> 
> Didn’t see that mentioned, or maybe my understand of Defold is still limited. Hope it can help some people with the same problem!

Are you sure about this? Can you please show an example of where it isn’t working?

---

<div class="post-metadata">

**Author:** ![Lex](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/lex/32/23856_2.png) [@Lex](https://forum.defold.com/u/Lex)\
**Post date:** [March 10, 2021, 11:11am UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758/4 "2021-03-10T11:11:14Z")

</div>

Never mind.  
I got confused. I was actually calling a global function, therefore depending from where I was calling that function, the collectionproxy could be found, or not.

I guess I needed some sleep because this is a rookie’s mistake 🙂  
I will delete this topic later, it will confuse people more than anything.  
Sorry for the confusion!

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 10, 2021, 11:22am UTC](https://forum.defold.com/t/unable-to-find-collection-proxy-component-solved/67758/5 "2021-03-10T11:22:22Z")

</div>

> [@Lex](#):
>
> I was actually calling a global function, therefore depending from where I was calling that function, the collectionproxy could be found, or not.

Yes, that explains it! Happy to hear you figured it out though!
