CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Database error on Synchronize Users to Contacts
Pages: [1]

Author Topic: Database error on Synchronize Users to Contacts  (Read 1035 times)

randallemery

  • Guest
Database error on Synchronize Users to Contacts
August 15, 2008, 09:53:20 pm
I'm using version 2.0.4 and when I click on the link to Synchronize Users to Contacts in the Adminstrater CiviCRM area, I get the following message:

Code: [Select]
     Sorry. A non-recoverable error has occurred.

    DB Error: already exists

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code ] => -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_uf_match (uf_id , uf_name , contact_id , domain_id ) VALUES ( 38 , 'email@domain.com' ,  37 ,  1 )  [nativecode=1062 ** Duplicate entry '37' for key 4]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_uf_match (uf_id , uf_name , contact_id , domain_id ) VALUES ( 38 , 'email@domain.com' ,  37 ,  1 )  [nativecode=1062 ** Duplicate entry '37' for key 4]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_uf_match (uf_id , uf_name , contact_id , domain_id ) VALUES ( 38 , 'email@domain.com' ,  37 ,  1 )  [nativecode=1062 ** Duplicate entry '37' for key 4]"]
)

Any idea if this is a problem with a table entry that I should fix or if this is a bug?

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Database error on Synchronize Users to Contacts
August 15, 2008, 11:06:59 pm
Nope this is not a bug. This is related to some duplicate email ids ( may be email@domain.com ) in your db.

Check these similar posts -
http://forum.civicrm.org/index.php/topic,4001.0.html
http://forum.civicrm.org/index.php/topic,47.0.html
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Database error on Synchronize Users to Contacts

This forum was archived on 2017-11-26.