Counterbalancing error


I hope everyone is keeping well.

I am having some issues with counterbalancing my experiment online. I have followed the instructions for counterbalancing online. However, every time I try to run the experiment I get the error:
TypeError: not all arguments converted during string formatting

I googled this error and it said it is to do with the integer not being a string value and they have various solutions but they don’t seem to work. I was wondering if anyone else had this issue and what they did to solve it.
This is my current code & conditions property where I want the code to work:

Any help would be greatly appreciated! Thank you so much!

Does it make a difference if you uncheck the ‘Is trials’ box?

No that doesn’t make a difference, the same error still shows up.

group is a variable. It should be $“SpatialStudy”+group+".xlsx"

You’ll also need to add the resources, for example via the online tab in settings

Thank you so much for your suggestion but it’s still not working. I have added all image stimuli utilised into that tab but is there anything else I need to add to it?
I thought it might be something wrong with code I wrote beforehand as this is the error that comes up:
if expInfo[‘participant’] % 2 :
TypeError: not all arguments converted during string formatting

This returns a text variable, not numeric. You need int(expInfo[‘participant’])

I’ve made that mistake recently and ended up with all participants in the same group.

Thank you so much it is working now! :smiley: