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

Replication fails with duplicate key and unique index 'IX_OTI_ORIGINALIDS' -error

Last updated on 22 March 2022 · 2 min read

Admin
Replication

Overview

You might see following kind of error message when importing objects and/or value lists from one vault to another:

Status: Failed. Error: Import of a content package failed.

Source: D:\mfiles-transfer\Structure From Vault1\{31CD2299-1439-4758-8F42-5764D7492B3A}_20220311_120900\Index.xml

Vault ID: {1D32DEB6-CDB2-4953-B5E0-333A48E1B673}

 The package may have been partly imported before the process was stopped.

Import of the object "112-395 ({AD14D487-2EC3-4189-B1AE-B35C49F72324})" from a content package failed.

The statement has been terminated. (ERROR: 3621, SQLSTATE: 01000)

Cannot insert duplicate key row in object 'dbo.OBJECTTYPEITEM' with unique index 'IX_OTI_ORIGINALIDS'. The duplicate key value is (31cd2299-1439-4758-8f42-5764d7492b3a, X, Y). (ERROR: 2601, SQLSTATE: 23000)

Solution

To proceed with the investigations more information is needed. If the target vault is using Microsoft SQL Server as database engine, please run following query in SQL Management studio:

select * from objecttypeitem where originalobjecttype = X

Replace the X with object type ID seen in the error message. Save results to csv-file and send it to M-Files Support.

If the database engine of the target vault is Firebird, please send metadata copy of the vault using these instructions:

/article/How-to-create-metadata-backup-for-M-Files-vault

In addition, please send the problematic replication package to M-Files Support, path can be seen from the error message:

Source: D:\mfiles-transfer\Structure From Vault1\{31CD2299-1439-4758-8F42-5764D7492B3A}_20220311_120900

Please send the requested data to M-Files Support by using CryptShare.

Still need help?

On this page