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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Bets 5 Sync users generates error if matching email found
Pages: [1]

Author Topic: Bets 5 Sync users generates error if matching email found  (Read 2238 times)

tabletguy

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
Bets 5 Sync users generates error if matching email found
January 16, 2010, 05:35:49 am
IMO, duplicates can always exist, and should not generate an unrecoverable error.

http://localhost/j2/administrator/index2.php?option=com_civicrm&task=civicrm/admin/synchUser&

Code: [Select]
CRM_Admin_Form_CMSUser

unrecoverable error
    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 (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  63 , 'tabletguy@mywebsite.com' ,  102 )  [nativecode=1062 ** Duplicate entry '102-1' for key 'UI_contact_domain_id']
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_uf_match (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  63 , 'tabletguy@mywebsite.com' ,  102 )  [nativecode=1062 ** Duplicate entry '102-1' for key 'UI_contact_domain_id']
    [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 (domain_id , uf_id , uf_name , contact_id ) VALUES ( 1 ,  63 , 'tabletguy@mywebsite.com' ,  102 )  [nativecode=1062 ** Duplicate entry '102-1' for key 'UI_contact_domain_id']"]
)

[/code]

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Bets 5 Sync users generates error if matching email found
January 16, 2010, 06:47:37 am

wanna investigate and submit a patch to fix the issue?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tabletguy

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 2
Re: Bets 5 Sync users generates error if matching email found
January 17, 2010, 09:28:47 pm
I sent you a PM yesterday about this.

Basically, I don't think I would know how to do this, as I'm quit new to CiviCRM.

I "could" say it should work similar to import, where errors are collected (along with name of field(s) in error), and then at the end, that list of errors should be offered for download. So, basically emulate (copy) much of that code, or, perhaps, make a common object that collects the sql errors, and then a common object to present the collection for download, etc.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.1 Release Testing »
  • Bets 5 Sync users generates error if matching email found

This forum was archived on 2017-11-26.