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.' - when attempting an ETL Refresh.

After deploying your data warehouse, you may find the need to run an ETL refresh to pull in current data.  When attempting an ETL refresh, a user may receive the following error:

Progress: 2016-03-02 08:31:26.53
   Source: Adding Staging Indices
   Executing query "exec BBDW.[CREATE_OR_DROP_FACT_RECURRINGGIFTINSTAL...".: 100% complete
End Progress
Error: 2016-03-02 08:31:26.78
   Code: 0xC002F210
   Source: Upsert Execute SQL Task
   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
Warning: 2016-03-02 08:31:26.82
   Code: 0x80019002
   Source: Load Rows
   Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
End Warning
Warning: 2016-03-02 08:31:26.82
   Code: 0x80019002
   Source: BBDW_FACT_RECURRINGGIFTINSTALLMENTPAYMENT
   Description: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
End Warning
 
We're currently evaluating this issue for a fix in a future patch or service pack.  

Steps to Duplicate

1.  Log-in.
2.  Go to Administration, Data warehouses, Date warehouse, and click Start ETL refresh.  Notice failure and see status log for full error.  

Environment

 Blackbaud CRM
 3.0

Was this article helpful?