# Error in importing .xlsx conditions file

**URL:** <https://discourse.psychopy.org/t/error-in-importing-xlsx-conditions-file/3464>\
**Category:** Coding\
**Created:** [November 17, 2017, 4:19am UTC](https://discourse.psychopy.org/t/error-in-importing-xlsx-conditions-file/3464 "2017-11-17T04:19:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [November 18, 2017, 6:31am UTC](https://discourse.psychopy.org/t/error-in-importing-xlsx-conditions-file/3464/4 "2017-11-18T06:31:42Z")

</div>

> [@SarahMac](#):
>
> I should clarify that I have been building the basic outline for my experiment in the Builder and then having the Builder write the script - from there I am alter the code in the Coder window

This is unlikely to be necessary. Keep working in Builder and insert code components within the Builder interface rather than attempting to edit the generated script. The code component will automatically insert the code at the right place (beginning of experiment, beginning of routine, every frame, etc) and allows you to keep tweaking the experiment using the GUI. Best of both worlds.

> [@](#):
>
> PsychoPy seems to create a default pathway for the excel file based on the location that the Coder script has been saved (i.e. if the script is saved to the Desktop then PsychoPy will assume the excel file is also in the Desktop folder). This is one more thing to check when experiencing trouble

This is a feature rather than a bug. i.e. can you think of a better way that PsychoPy should search for your file? The alternative is to use a full absolute path to your file. You are still able to do this of course: PsychoPy doesn’t prevent you), but that creates potential for errors and makes your experiment non-portable.

---

_[View the full topic](https://discourse.psychopy.org/t/error-in-importing-xlsx-conditions-file/3464)._
