This Query will arise due to a discrepancy with the information in your School Details table.
Click on your school name at the top right of ScholarPack, above the student search bar, or go to Admin > Config > Core Setup > School.
You will need to check the Highest and Lowest Year group recorded agrees with the School Type you have recorded. Click on Edit to view the school type details (as opposed to the number).
An example when this Query arises is if your year groups are recorded as:
and your school type is recorded as
In this case you will need to select a School Type which matches year groups up to year 2, your highest year in the example above.