Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

M-Files Desktop: Violation of PRIMARY KEY constraint 'PK_OPPXXXXLR' error when editing object

Last updated on 16 May 2023

Admin
M-Files Desktop

Overview

Following kind of error message is seen when trying to modify the object and save the changes in M-Files Desktop:

MCommand.h, 583, Error 2627, Level 14, State 1, Procedure -, Line 1, Message: Violation of PRIMARY KEY constraint 'PK_OPP1073LR'. Cannot insert duplicate key in object 'dbo.OVPVP1073LR'. The duplicate key value is (136, 150). (ERROR: 50000, SQLSTATE: 42000) (0x80040E14)

(M-Files 23.4.12528.8 2023-04-25T05:31:14.099Z)

Solution

Please run Verify & Repair (Quick) in M-Files Admin tool, it should report following kind of error:

image.png

Please click 'Yes' to 'Do you want M-Files to attempt to fix the errors?' and it should solve the issue.

These instructions are valid onwards from M-Files version 20.6.9181.4. If you have older version, please contact M-Files Support.

Please note:

In the Verify Document Vault report dialog, if you see errors that cannot be repaired automatically:

  • Contact M-Files Support immediately. Please provide the full contents of the report dialog and the full version number of your M-Files Server software.
  • Do not try to repair the errors yourself.
  • Do not click 'Yes' in the dialog to let M-Files try to repair the errors.

Errors that cannot be repaired automatically are explicitly marked in the list of errors. When M-Files support has fixed the errors, start the verify and repair operation again.

Still need help?

On this page