Error: General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of Primary KEY constraint Native error:2627- when adding a gift with the payment method Credit Card or Direct Debit

When adding a new gift record into the database with the payment method "Credit Card" or "Direct Debit", users receive the following error:

General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint 
'PK_Gift2Fields_19D68321'. Cannot insert duplicate key in object 'dbo.Gift2Fields'.
Native error:2627
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated. 
Native error:3621
Download and install the latest version and patch if applicable.

Steps to Duplicate

1. Log into The Raiser's Edge
2. Click Records>Gifts
3. Click New Gift
4. Click the binoculars in the Constituent field
5. Search for any constituent
6. Select any gift type from the Gift type drop-down
7. Type in your desired gift date and gift amount
8. Select your desired Campaign, Fund, Appeal, and Package selections
9. Select Credit Card (or Direct Debit) from the Pay method drop-down
10. Click Save and Close
11. Error appears

OR

1. Click Batch>New Gift Batch
2. Click the Fields tab
3. Select your desired gift fields; be sure to include Pay method
4. Click Date Entry
5. Click the binoculars in the Constituent field
6. Search for any constituent
7. Select any gift type from the Gift type drop-down
8. Type in your desired gift date and gift amount
9. Select your desired Campaign, Fund, Appeal, and Package selections
10. Select Credit Card (or Direct Debit) from the Pay method drop-down
11. Click File>Commit completed batch
12. Click Commit Now

13. Batch posts with an exception
14. Open the exception report
15. Error appears in the exception report

Environment

 Raiser's Edge

Was this article helpful?