During an upgrade from 1.9.10 to Moodle 2.0 I get an error during the enrol_meta upgrade process that says "Can not find data record in database table course" (see screen shot).
If I flush out the table mdl_meta prior to the upgrade it works fine but obviously I have no child courses or enrolments.
If I ignore the error then the upgrade continues but meta functionality does not work even though it's enabled in the Moodle 2.0 enrolment settings. I can then not select this as a plugin.
At this stage I'm not sure where it's failing or what the error message means. My upgrade has over 3000 meta courses, could this be the issue?