Error: “The MERGE statement attempted to UPDATE or DELETE the same row more than once” seen when attempting to run the ETL Refresh process.

CRM users may notice the ETL Refresh process fails with the following error message when running the FACT_RECURRINGGIFTINSTALLMENTPAYMENT package.
 
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.
End Error
We're currently evaluating this issue for a fix in a future patch or service pack.

Steps to Duplicate

  1. Log into CRM and navigate to the Administration functional area.
  2. Select Data Marts.
  3. Select and go to the appropriate date mart.
  4. Click the ‘Start ETL refresh’ task
  5. Allow the process to run until it ends in error
  6. Select the ‘SQL agent job’ tab and then click ‘download status log’ to view the errors.

Environment

 Blackbaud CRM
 3.0

Was this article helpful?