2587246 - Duplicate Key Violation when updating primary key - SRS | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2587246 - Duplicate Key Violation when updating primary key - SRS

Symptom

When updating the primary key column in a replicated table, occasionally the SAP Replication Server (SRS) DSI connection to the replicate database fails with the following error in the SRS log:

ERROR #1028 DSI EXEC(629(1) DS.DB) - neric/dsi/dsiqmint.c(5095)
 Message from server: Message: 2601, State 2, Severity 16 -- 'Attempt to insert duplicate key row in object 'table1' with unique index 'Itable1''.
 Message from server: Message: 3621, State 0, Severity 10 -- 'Command has been aborted.'.


THREAD FATAL ERROR #5049 DSI EXEC(629(1) DS.DB) - neric/dsi/dsiqmint.c(5108)
 The DSI thread for database 'DS.DB' is being shutdown. DSI received data server error #2601 which is mapped to STOP_REPLICATION. See logged data server errors for more information. The data server error was caused by output command #1 mapped from input command #5 of the failed transaction.


Read more...

Environment

SAP Replication Server (SRS) 15.7 or higher

Product

SAP Replication Server 15.7 ; SAP Replication Server 16.0

Keywords

Rep Server, "primary key", duplicate, SQL, Statement , KBA , BC-SYB-REP , Sybase Replication Server (standalone) , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.