# Unknown Resource for Image and condition files

**URL:** <https://discourse.psychopy.org/t/unknown-resource-for-image-and-condition-files/12823>\
**Category:** Online experiments\
**Created:** [April 28, 2020, 9:13am UTC](https://discourse.psychopy.org/t/unknown-resource-for-image-and-condition-files/12823 "2020-04-28T09:13:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Julia\_Landsiedel](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/julia_landsiedel/32/8175_2.png) [@Julia\_Landsiedel](https://discourse.psychopy.org/u/Julia_Landsiedel)\
**Post date:** [June 22, 2020, 11:01am UTC](https://discourse.psychopy.org/t/unknown-resource-for-image-and-condition-files/12823/4 "2020-06-22T11:01:43Z")

</div>

It would be useful to know a bit more about how you coded it in order to have an idea what the error might be.

Is it a loop within a loop where you specify the condition file in an inner loop?  
Do you specify the condition file path+filename in the dialogue box or as a variable through a code snippet?  
Have all your resources synced successfully online/did you copy the condition file into the resource folder?

Have you looked at other forum posts which talk about solutions in more detail (below links are just two examples I picked)?

> [@Unknown resource, conditions file](https://discourse.psychopy.org/t/unknown-resource-conditions-file/13700):
>
> URL of experiment: [https://pavlovia.org/snorwood/mts\_1b](https://pavlovia.org/snorwood/mts_1b) Description of the problem: I receive the following error when I try to pilot my experiment. My conditions file is in the resources folder inside the html folder for my experiment. It shows up under files when I view the code online. I can’t figure out the problem. Thanks! Unfortunately we encountered the following error: when importing condition: /Users/temp/Documents/Experiments/html/resources/Conditions\_1B.xlsx when getting the value…

> [@Psychojs - Inner Loop pattern](https://discourse.psychopy.org/t/psychojs-inner-loop-pattern/8087/3):
>
> PS - @dvbridges ; Can you confirm that the solution you listed with cond.xlsx and A.xlsx in [your earlier answer](https://discourse.psychopy.org/t/editing-pavlovia-experiments/7939/27) works in psychojs? I’m able to use a variable as a conditions file name in python, but not online, getting a \<condition\_filename\> is not defined error (I think because of the way the loop is scheduled). If it doesn’t work, can you think of a way to make it? Thank you!

Cheers,  
Julia

---

_[View the full topic](https://discourse.psychopy.org/t/unknown-resource-for-image-and-condition-files/12823)._
