Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6533

Restoring a backup gives an error Duplicate entry 'xxxxx' for key 'mdl_quizatte_uni_uix'

$
0
0

by Ahmad Faridi.  

Hi All, 

I am currently getting this error while restoring my backups that has quizzes. It has happened to several backup files that I am restoring. 


Duplicate entry '101309' for key 'mdl_quizatte_uni_uix'

INSERT INTO mdl_quiz_attempts (userid,uniqueid,layout,currentpage,preview,state,timestart,timefinish,timemodified,timecheckstate,sumgrades,quiz,attempt) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?)

[array (

  0 => '13332',

  1 => 101309,

  2 => '1,2,3,0',

  3 => '0',

  4 => '0',

  5 => 'finished',

  6 => 1473211867,

  7 => 1473212017,

  8 => 1473212017,

  9 => 0,

  10 => '2.00000',

  11 => 8892,

  12 => '1',

)]

I have looked into similar issues in the forum, and it seems that one way to handle this is to exclude quizzes from the backup process by removing the quiz related files from the backup .mbz file. The problem with this solution is that I need the quiz data in the course. 


Any  idea on how can I resolve this by maintaining the data ?




Viewing all articles
Browse latest Browse all 6533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>