| Reference | Downloads | Github

RangeError: Invalid array length... but only sometimes

URL of experiment: Experiment_English [PsychoPy]

Description of the problem: As mentioned in the title, I occasionally get a RangeError. However, whenever I restart the experiment it works again. For example, I got a RangeError when importing condition: list4_stress.xlsx. But on my next try it worked with list4_stress.xlsx. So I have absolutely no idea what’s wrong.

Here’s a picture:

If you have any idea what I need to do, please let me know.

does your excel file happen to have any empty columns or cells with information in them without a column header?

Hello Becca,

Thank you for replying! To answer you: no, it doesn’t.
All my excel files look like this (other than the different types of stimuli in the stim columns).

list4_stress.xlsx (10.5 KB)

If you only occasionally get the range error and you load one of a number of spreadsheets, please could you find out whether the range error is specific to a subset of the spreadsheets?