# Unknown resource error loading condition file

**URL:** <https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420>\
**Category:** Online experiments\
**Created:** [April 20, 2021, 12:21am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420 "2021-04-20T00:21:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdelrio](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mdelrio](https://discourse.psychopy.org/u/mdelrio)\
**Post date:** [April 20, 2021, 12:21am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/1 "2021-04-20T00:21:46Z")

</div>

**URL of experiment** : [Sign in · GitLab](https://gitlab.pavlovia.org/mdelrio/tr)

**Description of the problem:**  
I keep getting the following error message when I try to run the experiment online:

 ![Screenshot (204)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/f/ffe4fb95a5b0c05738bf4a0706e98491748b7dc6.png)

The idea is to specify different condition files according to the participant number, hence the conditions file is specified as a variable in a code component at the beginning of the experiment as

`practiceConditionsFile = 'resources/practiceConMat' + str(int(expInfo['participant']) % 4) + '.csv'`

This is then implemented as the conditions file in the corresponding loop. The task works locally on Psychopy.

**Attempted so far**

1. Changed the paths in the code to just  
`practiceConditionsFile = 'practiceConMat' + str(int(expInfo['participant']) % 4) + '.csv'`
2. Changed the location of the contents of the resources folder to the master folder and the html folder.
3. Deleted the experiment on Pavlovia, copied the files to a new directory locally and pushed everything to a brand new experiment on Pavlovia.

Any suggestion would be much appreciated!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 20, 2021, 5:45am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/2 "2021-04-20T05:45:43Z")

</div>

You need to add resources in Experiment Settings / Online

---

<div class="post-metadata">

**Author:** ![mdelrio](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mdelrio](https://discourse.psychopy.org/u/mdelrio)\
**Post date:** [April 20, 2021, 10:05am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/3 "2021-04-20T10:05:54Z")

</div>

Thank you for the quick reply! I had added them already, is this not correct?

![Screenshot (205)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/0/30b521c4746de63d7e97fc4d25fba274951ab334.png)

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [April 20, 2021, 10:16am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/4 "2021-04-20T10:16:25Z")

</div>

Cool.

Two thoughts

1. Try Excel files instead of CSV

2. Try calling them without the folder name.

Are you seeing them getting downloaded as the experiment starts (you can check in the console if you aren’t sure).

---

<div class="post-metadata">

**Author:** ![mdelrio](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mdelrio](https://discourse.psychopy.org/u/mdelrio)\
**Post date:** [April 20, 2021, 10:38am UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/5 "2021-04-20T10:38:38Z")

</div>

Will do, thanks! By calling them without folder name, would that be in the code (I tried that already), in the experiment settings or both?

This is the output in the developer console, is that what you were referring to? I don’t really see any additional information here, what am I missing?

 ![Screenshot (206)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/1/811e238da37c2fc28beaaaf0dbc3502725287065.png)

---

<div class="post-metadata">

**Author:** ![mdelrio](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@mdelrio](https://discourse.psychopy.org/u/mdelrio)\
**Post date:** [April 20, 2021, 2:39pm UTC](https://discourse.psychopy.org/t/unknown-resource-error-loading-condition-file/22420/6 "2021-04-20T14:39:26Z")

</div>

Thank you, it seems like the error message is gone after using .xlsx files.

 ![Screenshot (208)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/b/5b4ba3d2dad9ff116398005750dcc34f6623ff37.png)

Unfortunately this still leaves all the other errors to deal with, but that should probably be a new topic!
