This error will happen when the student has a record for class or daily attendance already. The student would need to be marked present so the record is removed before they can post a new one.