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

Duplicate key error when destroying object

Last updated on 8 January 2025

Admin
M-Files Desktop

Overview

When trying to destroy object, you may get the following kind of error message:

Error 2601, Level 14, State 1, Procedure -, Line 1, Message: Cannot insert duplicate key row in object 'dbo.OBJECTTnnnIS' with unique index 'IX_OTnnnIS_EXTIDSTAT_EXTID'. The duplicate key value is (5, X). (ERROR: 50000, SQLSTATE: 42000)

Solution

This is related to a known issue with ID 147176 and it is fixed in M-Files Jun ’24 Update (24.6.13797.6).

There are two objects of the same object type (nnn) with the same external ID (X) in the database and this is causing the issue.

As a workaround, the external ID of the problematic object needs to be changed, it needs to be set to unique value. There are two options to do this:

Still need help?

On this page