To resolve this error you will need to amend this information. They are both recorded on the extended tab of the student's profile. Entry date is under the core information heading and leaving date is under the school information heading.
Once you have updated these ensure to click save at the bottom of the page.