AttendanceForDay record error

Error: It is not allowed to have more than one AttendanceForDay record with the same key values, but we came across 2 AttendanceForDay records with these **exact same key values**: **School ID** (ANWF90), **School
If this error shows,  run day attendance. What the system thought was that the student had more than one day attendance codes when that cannot be possible.  When running day attendance, it re-reads the attendance for that student and the error should resolve.