This exception indicates that there is no Schedule Set associated with the Academic Year and school. Add or Import Schedule Sets and re-run Generate Master Schedule.