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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error when attempting to remove email address
Pages: [1]

Author Topic: Error when attempting to remove email address  (Read 975 times)

Jerry

  • Guest
Error when attempting to remove email address
September 10, 2008, 02:54:21 pm
I am receiving the following message:

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

Database Error Code: Cannot delete or update a parent row: a foreign key constraint fails (`db_data_org/civicrm_mailing_event_queue`, CONSTRAINT `FK_civicrm_mailing_event_queue_email_id` FOREIGN KEY (`email_id`) REFERENCES `civicrm_email` (`id`)), 1451

Return to home page.

Error Details:


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

    [code] => -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => DELETE FROM civicrm_email  WHERE (  civicrm_email.id = 5202 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`db_data_org/civicrm_mailing_event_queue`, CONSTRAINT `FK_civicrm_mailing_event_queue_email_id` FOREIGN KEY (`email_id`) REFERENCES `civicrm_email` (`id`))]
    [type] => DB_Error
    [user_info] => DELETE FROM civicrm_email  WHERE (  civicrm_email.id = 5202 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`db_data_org/civicrm_mailing_event_queue`, CONSTRAINT `FK_civicrm_mailing_event_queue_email_id` FOREIGN KEY (`email_id`) REFERENCES `civicrm_email` (`id`))]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="DELETE FROM civicrm_email  WHERE (  civicrm_email.id = 5202 )  [nativecode=1451 ** Cannot delete or update a parent row: a foreign key constraint fails (`db_data_org/civicrm_mailing_event_queue`, CONSTRAINT `FK_civicrm_mailing_event_queue_email_id` FOREIGN KEY (`email_id`) REFERENCES `civicrm_email` (`id`))]"]
)



I am running Drupal 5 w/ CiviCRM 1.9.

This happened after we used CiviMail and attempted to remove an email address.[/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: Error when attempting to remove email address
September 10, 2008, 07:24:42 pm

I'm pretty sure this issue was filed and fixed in 2.0 (thanx to cascaded delete constraints)

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

Jerry

  • Guest
Re: Error when attempting to remove email address
September 10, 2008, 08:18:07 pm
OK, thanks!  I will just mark the record as 'do not bulk mail' and 'do not email' until we upgrade from 1.9 to 2.0 to 2.1.
« Last Edit: September 11, 2008, 09:19:50 am by Jerry »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error when attempting to remove email address

This forum was archived on 2017-11-26.