To amend this error as shown in the below screenshot 

 

You simply have to make sure the Course ID matches with the new course they are enrolled into as shown:

 

To prevent this issue reoccurring make sure when transferring enrolments with existing company invoices make sure to update the course number in the invoice reflecting the new course