"Violation of PRIMARY KEY Constraint 'pk_prmaudit'. Cannot Insert Duplicate Key in Object 'dbo.PRMAUDIT'." With Native Auditing Enabled

(Doc ID 2093993.1)

Last updated on APRIL 11, 2017

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version to [Release 15.2]
Information in this document applies to any platform.


When upgrading an EPPM database to while native auditing is enabled and
with auditing enabled on the PREFER table, the prefer table won't get updated.

When the following statement is executed:
update prefer set database_version='PMDB,1520.0001.0001.0014'

The following error is observed:

Msg 2627, Level 14, State 1, Procedure PRMAUD_PREFER, Line 369
Violation of PRIMARY KEY constraint 'pk_prmaudit'. Cannot insert duplicate
key in object 'dbo.PRMAUDIT'. The duplicate key value is (2).


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms