Error: Executing the query declare @COUNTS table([ACTION] varchar(28), [INSER..." failed with the following error: "The MERGE statement attempted to UPDATE or DELETE the same row more than once - when refreshing the datamart"

Datamart refresh fails on  BBDW_DIM_CONSTITUENT with the following error message:

Description: Executing the query "declare @COUNTS table([ACTION] varchar(28), [INSER..." failed with the following error: "The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches more than one source row. A MERGE statement cannot UPDATE/DELETE the same row of the target table multiple times. Refine the ON clause to ensure a target row matches at most one source row, or use the GROUP BY clause to group the source rows.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Multiple rows marked primary in one or more of v_FACT_CONSTITUENTADDRESS_FULL, v_FACT_CONSTITUENTEMAILADDRESS_FULL, and/or v_FACT_CONSTITUENTPHONE_FULL. 
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

 Blackbaud CRM
 4.0
 4.0
 Service Pack 17

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.