Monday, February 25, 2013

Conflict in user account while restoring course

My customer reported a problem today while trying to restore a course backup.  First, a little background.  When a student completes a course, the course is backed up and the student enrollment is removed.  The *problem with this process is when the course is backed up, all the students enrolled in the course are backed up with it.

A user changing their profile data has caused a restore conflict!

Today, when my customer needed to view the students data who was backed up and un-enrolled, she went to restore the course backup.  The error was a conflict with one of the other users who were included in the backup.  Moodle wants to reconcile the students being restored with the ones already there, but if a change was made to the user profile data, like email or some other account information and moodle cannot completlely verify that it is the same student, it will fail with a message like this.










The user referenced above must have tweaked something in their profile to cause the conflict. This is the thread discussing this.

My solution was to restore the course to a different instance.  I have a content instance that is the same version of moodle 2.2.4 as the production instance.  The course restored with no issue on the content instance since THERE ARE NO STUDENTS TO CONFLICT WITH.  This allowed my customer to view the data needed.  Once that was completed, I removed the user accounts and the course from my content instance.

Moral of the story?

Backing up and restoring WITH USER CONTENT is tricky, if the students involved in the course tweak their profile data.

No comments:

Post a Comment