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.
