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 from 4.3.5 to 4.5.3
Pages: [1]

Author Topic: Database error when upgrading from 4.3.5 to 4.5.3  (Read 329 times)

jeffw

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.77
  • PHP version: 5.3.3
Database error when upgrading from 4.3.5 to 4.5.3
November 19, 2014, 11:32:22 pm
CiviCRM Upgrade Tasks

Status message Operating in maintenance mode. Go online.
[Error: Update Line Item Data]
Error Field   Error Value
Type   DB_Error
Code   -5
Message   DB Error: already exists
Mode   16
UserInfo   UPDATE civicrm_line_item cli LEFT JOIN civicrm_financial_item cfi ON cli.id = cfi.entity_id SET cli.label = 'Monthly Member', cli.price_field_id = 23, cli.price_field_value_id = 60, cfi.financial_account_id = 2, cfi.description = 'Monthly Member', cli.financial_type_id = 6 WHERE cfi.entity_table = 'civicrm_line_item' AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (20581,20581,20581,20735,20735,20735,20922,20922,20922,21293,21546,21727,22147,22332,22624); [nativecode=1062 ** Duplicate entry 'civicrm_contribution-16930-60-23' for key 'UI_line_item_value']
DebugInfo   UPDATE civicrm_line_item cli LEFT JOIN civicrm_financial_item cfi ON cli.id = cfi.entity_id SET cli.label = 'Monthly Member', cli.price_field_id = 23, cli.price_field_value_id = 60, cfi.financial_account_id = 2, cfi.description = 'Monthly Member', cli.financial_type_id = 6 WHERE cfi.entity_table = 'civicrm_line_item' AND cli.entity_table = 'civicrm_contribution' AND cli.id IN (20581,20581,20581,20735,20735,20735,20922,20922,20922,21293,21546,21727,22147,22332,22624); [nativecode=1062 ** Duplicate entry 'civicrm_contribution-16930-60-23' for key 'UI_line_item_value']
PEAR_Exception: DB Error: already exists in unknown on line unknown
- DB_Error: DB Error: already exists in unknown on line unknown
Exception trace
#   Function   Location
0   CRM_Core_Error::exceptionHandler(Object(DB_Error))   unknown:unknown
1   call_user_func(Array, Object(DB_Error))   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/PEAR.php:931
2   PEAR_Error->PEAR_Error('DB Error: alread…', -5, 16, Array, 'UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB.php:975
3   DB_Error->DB_Error(-5, 16, Array, 'UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/PEAR.php:564
4   PEAR->raiseError(null, -5, null, null, 'UPDATE civicrm_l…', 'DB_Error', true)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/common.php:1905
5   DB_common->raiseError(-5, null, null, null, '1062 ** Duplicat…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/mysql.php:899
6   DB_mysql->mysqlRaiseError()   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/mysql.php:328
7   DB_mysql->simpleQuery('UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/common.php:1216
8   DB_common->query('UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/DataObject.php:2442
9   DB_DataObject->_query('UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/packages/DB/DataObject.php:1634
10   DB_DataObject->query('UPDATE civicrm_l…')   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Core/DAO.php:325
11   CRM_Core_DAO->query('UPDATE civicrm_l…', true)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Core/DAO.php:1116
12   CRM_Core_DAO::executeQuery('UPDATE civicrm_l…', Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Upgrade/Incremental/php/FourThree.php:1120
13   CRM_Upgrade_Incremental_php_FourThree::updateLineItemData(Object(CRM_Queue_TaskContext), '4.3.6')   unknown:unknown
14   call_user_func_array(Array, Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Queue/Task.php:82
15   CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Queue/Runner.php:189
16   CRM_Queue_Runner->runNext(true)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:48
17   {closure}()   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php:89
18   CRM_Queue_ErrorPolicy->call(Object(Closure))   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php:51
19   CRM_Queue_Page_AJAX::runNext()   unknown:unknown
20   call_user_func(Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Core/Invoke.php:296
21   CRM_Core_Invoke::runItem(Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Core/Invoke.php:75
22   CRM_Core_Invoke::_invoke(Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/CRM/Core/Invoke.php:52
23   CRM_Core_Invoke::invoke(Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/sites/all/modules/civicrm/drupal/civicrm.module:457
24   civicrm_invoke('upgrade', 'queue', 'ajax', 'runNext')   unknown:unknown
25   call_user_func_array('civicrm_invoke', Array)   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/includes/menu.inc:517
26   menu_execute_active_handler()   /home/ccmcweb/yesfairelections.org/htdocs/drupal-7.19/index.php:21
27   {main}   

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Database error when upgrading from 4.3.5 to 4.5.3

This forum was archived on 2017-11-26.