I have created a new Moodle server (3.0) and have backed up courses from my old 3.0 server and am restoring them on the new server for a pilot project. I have been successful in restoring 30+ courses, but I have about 8 that are failing.
Any assistance you can provide is appreciated.
Here is the error message that I receive:
Debug info: Duplicate entry '499-148-0-0' for key 'mdl_assisubm_assusegroatt_uix'
INSERT
INTO mdl_assign_submission
(assignment,userid,timecreated,timemodified,status,groupid,latest)
VALUES
(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?),(?,?,?,?,?,?,?)
[array (
0 => 499,
..... (skipped all the lines in between)
- line 446 of /lib/dml/moodle_database.php: dml_write_exception thrown
- line 1328 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1295 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_chunk()
- line 340 of /mod/assign/backup/moodle2/restore_assign_stepslib.php: call to mysqli_native_moodle_database->insert_records()
- line 351 of /mod/assign/backup/moodle2/restore_assign_stepslib.php: call to restore_assign_activity_structure_step->set_latest_submission_field()
- line 410 of /backup/util/plan/restore_structure_step.class.php: call to restore_assign_activity_structure_step->after_execute()
- line 113 of /backup/util/plan/restore_structure_step.class.php: call to restore_structure_step->launch_after_execute_methods()
- line 181 of /backup/util/plan/base_task.class.php: call to restore_structure_step->execute()
- line 198 of /backup/moodle2/restore_activity_task.class.php: call to base_task->execute()
- line 177 of /backup/util/plan/base_plan.class.php: call to restore_activity_task->execute()
- line 167 of /backup/util/plan/restore_plan.class.php: call to base_plan->execute()
- line 333 of /backup/controller/restore_controller.class.php: call to restore_plan->execute()
- line 224 of /backup/util/ui/restore_ui.class.php: call to restore_controller->execute_plan()
- line 111 of /backup/restore.php: call to restore_ui->execute()