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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Database Error when Upgrading
Pages: [1]

Author Topic: Database Error when Upgrading  (Read 914 times)

bsorgi

  • Guest
Database Error when Upgrading
December 06, 2010, 06:52:52 am
Hi Guys, I get the following error when trying to upgrade from 3.1.3 to 3.3.0... any advice?? thanks.

Sorry. A non-recoverable error has occurred.
DB Error: already exists

Database Error Code: Duplicate entry 'civicrm_participant-357-11-10' for key 'UI_line_item_value', 1062
Additional Details:
Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => ALTER TABLE `civicrm_line_item` ADD UNIQUE INDEX UI_line_item_value (`entity_table`,`entity_id`,`price_field_value_id`,`price_field_id`) [nativecode=1062 ** Duplicate entry 'civicrm_participant-357-11-10' for key 'UI_line_item_value']
    [type] => DB_Error
    [user_info] => ALTER TABLE `civicrm_line_item` ADD UNIQUE INDEX UI_line_item_value (`entity_table`,`entity_id`,`price_field_value_id`,`price_field_id`) [nativecode=1062 ** Duplicate entry 'civicrm_participant-357-11-10' for key 'UI_line_item_value']
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="ALTER TABLE `civicrm_line_item` ADD UNIQUE INDEX UI_line_item_value (`entity_table`,`entity_id`,`price_field_value_id`,`price_field_id`) [nativecode=1062 ** Duplicate entry 'civicrm_participant-357-11-10' for key 'UI_line_item_value']"]
)

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Database Error when Upgrading
December 07, 2010, 09:29:14 pm
Agree we should cleanup line item table before adding unique constraint.

Filed issue is here : http://issues.civicrm.org/jira/browse/CRM-7184

thanks

kiran
You Are Designed To Choose... Defined By Choice.

Rahul Bile

  • I post occasionally
  • **
  • Posts: 112
  • Karma: 16
  • impossible says, I M Possible
    • I AM POSSIBLE
Re: Database Error when Upgrading
December 08, 2010, 06:20:34 am
bsorgi,

This is fixed and will be a part of next release. You can get the patch from http://fisheye2.atlassian.com/changelog/CiviCRM?cs=31121,
you may need to apply the patch to 3.3.0 stable tar and do the upgrade once again.

HTH,
Rahul
Consider donating to CiviCRM if you use it. http://civicrm.org/donate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Database Error when Upgrading

This forum was archived on 2017-11-26.