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) »
  • Array error with Snchronize Users to Contacts
Pages: [1]

Author Topic: Array error with Snchronize Users to Contacts  (Read 915 times)

frank0051

  • Guest
Array error with Snchronize Users to Contacts
July 22, 2008, 03:09:11 pm
I have installed CiviCRM but I am "having troubles with the action of "Synchronize Users to Contacts" but it generates this error.  I have checked the database information in the setting file and it seems good to go but I this error still results:



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

       
Code: [Select]
=> -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_log (entity_table , entity_id , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  3 , 'civicrm_contact,3' ,  102 ,  20080722175320 )  [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_log (entity_table , entity_id , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  3 , 'civicrm_contact,3' ,  102 ,  20080722175320 )  [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_log (entity_table , entity_id , data , modified_id , modified_date ) VALUES ('civicrm_contact' ,  3 , 'civicrm_contact,3' ,  102 ,  20080722175320 )  [nativecode=1216 ** Cannot add or update a child row: a foreign key constraint fails]"]
)
 >:(

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Array error with Snchronize Users to Contacts
July 23, 2008, 11:06:40 am
A foreign key constraint error in this situation often means that you updated your database "externally" while staying logged in. Generally you can resolve this by just logging out and logging back in (which will recreate the "missing" contact record for your admin login).
Protect your investment in CiviCRM by  becoming a Member!

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

This forum was archived on 2017-11-26.