Error: Data could not be saved. Violation of PRIMARY KEY constraint 'PK_REVENUECATEGORY'. Cannot insert duplicate key in object 'dbo.REVENUECATEGORY'. The duplicate key value is (GUID) - When adding a matching gift claim to a posted payment

When adding a matching gift claim to a split gift, where one application is a payment on a Do not post pledge that has the same revenue category as the payment, the error "Data could not be saved. Violation of PRIMARY KEY constraint 'PK_REVENUECATEGORY'. Cannot insert duplicate key in object 'dbo.REVENUECATEGORY'. The duplicate key value is (GUID)" is thrown. Note that the GUID in the error message will change every time.
We are currently evaluating this issue for a fix in a future service pack.

Steps to Duplicate

1) Add a pledge with a revenue category and the GL post status of Do not post.
2) Add a payment with two applications: 1) will be a payment on the pledge added in step one 2) will be a donation.
3) Make sure the payment has the same revenue category as the pledge in step one.
4) Post the payment to the general ledger.
5) Go the payment record and add a matching gift claim > Save
6) Notice you encounter the error, "Error: Data could not be saved. Violation of PRIMARY KEY constraint 'PK_REVENUECATEGORY'. Cannot insert duplicate key in object 'dbo.REVENUECATEGORY'. The duplicate key value is (GUID)"

Environment

 Blackbaud CRM
 4.0
 4.0.180.1605

Was this article helpful?