Error: The DELETE statement conflicted with the REFERENCE constraint "FK_STOCKSALE_EXT_STOCKDETAILID". The conflict occurred in database "[Name]", table "dbo.STOCKSALE_EXT", column 'STOCKDETAILID'

When editing a revenue transaction's payment method from Stock to another option, you might encounter the error, "Data could not be saved. The DELETE statement conflicted with the REFERENCE constraint "FK_STOCKSALE_EXT_STOCKDETAILID". The conflict occurred in database "[Name]", table "dbo.STOCKSALE_EXT", column 'STOCKDETAILID'". 
We are currently evaluating this issue for a fix in a future service pack. 

Steps to Duplicate

1. Go to a revenue record that has the payment method of stock
2. On the record, Undo sell stock
3. Edit posted payment > Change payment method to other > Add an adjustment reason
4. Save the Edit posted payment form
5. Notice you get the error, "Data could not be saved. The DELETE statement conflicted with the REFERENCE constraint "FK_STOCKSALE_EXT_STOCKDETAILID". The conflict occurred in database "[Name]", table "dbo.STOCKSALE_EXT", column 'STOCKDETAILID'". 
 

Environment

 Blackbaud CRM
 4.0
 4.0.173.53

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.