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:
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.
