Hi,

While updating from 7.x-1.11 to 7.x-1.12, I'm getting this error message about Update #7101:

Failed: PDOException : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'admin' for key 'name': INSERT INTO {redhen_relation_role} (name, label, permissions) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => admin [:db_insert_placeholder_1] => Admin [:db_insert_placeholder_2] => a:3:{s:12:"add_relation";s:12:"add_relation";s:13:"edit_relation";s:13:"edit_relation";s:15:"delete_relation";s:15:"delete_relation";} ) in drupal_write_record() (line 7363 in ../includes/common.inc).

Does anybody know what is wrong or how to fix this?

Thanks for help.

Comments

sahaj created an issue. See original summary.

gcb’s picture

Status: Active » Fixed

This can happen if the update runs twice and attempt to re-create the same field twice. This issue should be resolved by the changes to this update hook made for issue #2832526.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sahaj’s picture

Sorry to come back to this issue, but I'm still having that error message while updating from 7.11 to 7.13 (actually, I did not updated to 7.12 because I already had the same error message).

Using the dev version is not helping. Maybe I missunderstood @gcb answer. What should I do?

Thanks for help.