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 when trying to make contribution
Pages: [1]

Author Topic: DB Error when trying to make contribution  (Read 587 times)

yaunus

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
DB Error when trying to make contribution
November 19, 2010, 04:12:30 pm
I'm getting the following error when I'm trying to make a contribution. Any ideas?

DB Error: already exists

Database Error Code: Duplicate entry 'live_00000001' for key 2, 1062
Additional Details:

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 (trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 20101119160325 , 'Debit' ,  5 ,  5 , 'USD' , 'Dummy' , 'live_00000001' )  [nativecode=1062 ** Duplicate entry 'live_00000001' for key 2]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_financial_trxn (trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 20101119160325 , 'Debit' ,  5 ,  5 , 'USD' , 'Dummy' , 'live_00000001' )  [nativecode=1062 ** Duplicate entry 'live_00000001' 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 (trxn_date , trxn_type , total_amount , net_amount , currency , payment_processor , trxn_id ) VALUES ( 20101119160325 , 'Debit' ,  5 ,  5 , 'USD' , 'Dummy' , 'live_00000001' )  [nativecode=1062 ** Duplicate entry 'live_00000001' for key 2]"]
)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: DB Error when trying to make contribution
November 19, 2010, 04:26:36 pm
looks like it is trying to put in the same transaction ID twice - what sort of a transaction were you doing?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

yaunus

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
Re: DB Error when trying to make contribution
November 19, 2010, 04:52:54 pm
Gah, after being able to reliably duplicate the bug, it's no longer happening!

But I am having another problem/question. It doesn't seem to be using the payment processor I've chosen. I selected the Auth.net as the payment processor in the Contribution Page settings but the payments don't show up in Authorize.net. Then I tried modifying the Auth keys, making them invalid, to see if it was even contacting the server. It still went through "successfully", despite the invalid Auth.net credentials.

Any ideas?

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

This forum was archived on 2017-11-26.