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.

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)"

Answer:

Download and install the latest patch which contains all fixes from previous patches. If you are running an older version, download and install the latest version and then the patch.

Environment

Affected Product:

BLKB CRM

Affected Product Version:

4.0

Resolved Version:

4.0

Resolved Patch/Service Pack:

4.0.180.2000 (Service Pack 20)

Was this article helpful?

Article Number

119479

Products

  • Blackbaud CRM
Page loading complete.