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 CiviContribute (Moderator: Donald Lobo) »
  • DB Error: already exists
Pages: [1]

Author Topic: DB Error: already exists  (Read 1302 times)

momendo

  • Guest
DB Error: already exists
February 07, 2008, 12:20:49 pm
Sorry I crossed posted to the wrong forum.

I get this error when submitting a test mode contribution membership page. Using Civicrm 1.8.11248

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

       
Code: [Select]
=> -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  14 ,  20080207120841 , 'Debit' ,  1.00 ,  1.00 , 'USD' , 'AuthNet_AIM' , 'test00000002' )  [nativecode=1062 ** Duplicate entry 'test00000002-1' for key 2]
    [type] => db_error
    [user_info] => INSERT INTO civicrm_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  14 ,  20080207120841 , 'Debit' ,  1.00 ,  1.00 , 'USD' , 'AuthNet_AIM' , 'test00000002' )  [nativecode=1062 ** Duplicate entry 'test00000002-1' for key 2]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_financial_trxn (domain_id , entity_table , entity_id , trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 1 , 'civicrm_contribution' ,  14 ,  20080207120841 , 'Debit' ,  1.00 ,  1.00 , 'USD' , 'AuthNet_AIM' , 'test00000002' )  [nativecode=1062 ** Duplicate entry 'test00000002-1' for key 2]"]
)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DB Error: already exists
February 07, 2008, 12:22:39 pm
This was a bug in authorize.net integration with CiviCRM and I think is fixed in CiviCRM v1.9.
It is definitely fixed in current CiviCRM v2.0 alpha.

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • DB Error: already exists

This forum was archived on 2017-11-26.