SQLCODE -788 means the source of the MERGE contains duplicate values for the columns used in the ON clause. MERGE requires unique join keys in the source.