An Error with setting a conditions document

Win10 (e.g. Win10):
PsychoPy version 2022.1.2 (e.g. 1.84.x):
Hello, I am very new to PsychoPy and I am trying to use an excel file to set conditions for my experiment in the builder. It is giving me this error when I select the file however:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1660, in onOK
self.refreshConditions()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1627, in refreshConditions
self.conditions = data.importConditions(
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\data\utils.py”, line 411, in importConditions
fieldName = fieldNames[colN]
IndexError: list index out of range

Does anyone have any ideas one what I might be able to do to fix it? Thanks!

Index out of range means that either colN has a value to small or big for fieldNames or possibly that fieldNames is empty at the moment you request. How are these variables being set? When are you trying to run the code that gives the error?

Ah sorry I figured out the issue, I had a column that wasn’t valid in my excel sheet! Whoops
Sorry about the trouble but thank you for pointing out where to look!