Wired blank in trials

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win11
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.2.4 Py3.8
Standard Standalone Installation? (y/n) y If not, then what?:
**Do you want it to also run online? (y/n)**n
What are you trying to achieve?:
I’m trying to make of sequential loop of 8 categories, each of which has two study routines with feedback and one test routine without feedback. (Almost the same as the illustration below of Vanderbilt Expertise Test.)

What did you try to make it work?:
Here is the screenshot of my category Excel, and one of the butterfly’s study routines Excel, and butterfly’s study routine Excel:


What problem?:
However, when I run it, the butterfly category always has 6 more blank trials before the exact trials appear. And for the motorcycles, whatever its order in the category is, it will always first repeat its previous category’s first trials 12 times and then directly go to test routines. Other categories are all going well.

Link to the most relevant existing thread you have found:
I have found these two relevant threads and tried their solutions, but the problem remains.

[PsychoPy using trials that don’t exist]

Have you double checked for blank rows in your spreadsheet?

Yes, I have checked many times, including deleting blank rows, saving as csv, copying and pasting the selected rows to a new spreadsheet, and also unhide. Please let me know if there are any other things I could try. Thanks for your reply!

Thanks wakecarter, I double checked again, and found the problem of buterfly is because the studybutterfly.xlsx have extra coloum(not the test_with_fb_butterfly_1.xlsx, for which routine have extra blank trials), and the test_with_fb_motorcycle_1.xlsx have extra blank rows, with the first row have some variable names.

I have repalced the studybutterfly.xlsx with the cleaned csv file, and deleted the extra rows in motorcycle. The problems have solved. Thanks a lot!