IBM Support

'Violation of PRIMARY Key' errors logged when inserting into the Audit Log or Notification Log tables - Sterling Gentran:Server for Microsoft Windows

Troubleshooting


Problem

'Violation of PRIMARY Key' errors logged when inserting into the Audit Log or Notification Log tables

Symptom

Database error [Microsoft][ODBC SQL Server Driver][SQL Server]Violation of PRIMARY KEY constraint <constraint>. Cannot insert duplicate key in object <table> in function <function>

Error: Cannot insert duplicate Key in object ProcAuditLog_tb in function ProcAuditLogEntry

Errors logged when inserting into the Audit Log or Notification Log tables

Errors in Windows Application log when rows are inserted into ProcAuditLog_tb, DataAuditLog_tb, or NotifyLog_tb

[{"Product":{"code":"SS6V3G","label":"Sterling Gentran:Server for Microsoft Windows"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.1;5.2;5.3;5.3.1","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

SCI3768

Document Information

Modified date:
16 June 2018

UID

swg21541518