How do the Batch Add queries determine which class to enroll a student into?

Occasionally, when batch adding students to classes using the batch add queries, students may end up being enrolled in the wrong class or the wrong year. This can usually be traced to the Scheduler School Year system parameter.

The Scheduler School Year system parameter controls what school year's class record students are added to.
Since class records are year-specific and Class IDs can be used year-over-year, the Batch Add People to Class/Team/Program query relies on the Scheduler School Year system parameter to know to which year’s class record the students should be added.

 If you set that parameter to the school year for the class into which you’re trying to place students, that should resolve the issue as long as the class is not completed (in which case an engineer will need to add those enrollments).