Error when using mass delete

Error when using mass delete

by Eric Ward -
Number of replies: 1

I loaded a bunch of accounts i did not want using the sync php, now i get this error trying to delete them:

 

[Mon Mar 18 15:00:09 2013] [error] [client 10.9.0.39] Default exception handler: Error writing to database Debug: Duplicate entry '1-3.1363633209' for key 'mdl_user_mneuse_uix'\nUPDATE mdl_user SET deleted = ?,username = ?,email = ?,idnumber = ?,picture = ?,timemodified = ? WHERE id=?\n[array (\n  0 => 1,\n  1 => '3.1363633209',\n  2 => '29100e74323966955c443dee1d9cb4c0',\n  3 => '',\n  4 => 0,\n  5 => 1363633209,\n  6 => '811',\n)]\nError code: dmlwriteexception\n* line 429 of /lib/dml/moodle_database.php: dml_write_exception thrown\n* line 1195 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()\n* line 1227 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->update_record_raw()\n* line 4073 of /lib/moodlelib.php: call to mysqli_native_moodle_database->update_record()\n* line 30 of /admin/user/user_bulk_delete.php: call to delete_user()\n, referer: http://dev-moodle.benco.com/admin/user/user_bulk_delete.php

Average of ratings: -
In reply to Eric Ward

Re: Error when using mass delete

by Eric Ward -

Running the sync_users.php with the setting set to delete, I still go errors, but had to run it 10ish time to remove all users after configuring LDAP Objectclass string better