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 trying to run a receipt process

When running a receipt process the following error may occur: 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.
 
In this case the query that was used in the process was looking at ALL revenue records for a particular type, once the process was modified to include records that had not been receipted the process ran without error.

Environment

 Blackbaud CRM
 4.0
 4.0.158.0

Was this article helpful?