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: PRIMARY KEY constraint 'PK_DATAFV_DELETED' when trying to destroy document

Last updated on 8 December 2025

Admin
M-Files Desktop

Overview

If you have M-Files 25.6 or newer, you might see the following kind of error message when trying to destroy document:

Violation of PRIMARY KEY constraint 'PK_DATAFV_DELETED'. Cannot insert duplicate key in object 'dbo.DATAFV_DELETED'. The duplicate key value is (543, 1, 1, 255, 0). (ERROR: 2627, SQLSTATE: 23000)

Solution

If you see 255 in the error stack, this is related to known issue ADI-655 and it is fixed in M-Files version 25.11.

Still need help?

On this page