Overview
In some cases, you might see following kind of errors reported by Verify&Repair in M-Files Admin tool:
Error 1:
Some of the object information in the database is inconsistent.
The "LatestCheckedInVersion" field has an incorrect version number.
Object type X, object ID Y.
NOTE: M-Files cannot fix this error automatically. (3853)
Error 2:
Some of the object information in the database is inconsistent.
Object type X, object ID Y, version 5.
NOTE: M-Files cannot fix this error automatically. (4913)
Solution
If the vault uses Microsoft SQL Server as database engine, please run the following queries in SQL Management Studio, save the results to csv-files and send files to M-Files Support:
select * from objecttypeitem where objecttype = X and id = Y
select * from objecttXr where id = Y
select * from objecttXi where id = Y
select * from objecttXis where id = Y
select * from objecttypeitemversion where id_objecttype = X and id_objectpart = Y
select * from objectversiontXlr where id_objectpart= Y
select * from objectversiontXli where id_objectpart= Y
select * from objectversiontXlis where id_objectpart= Y
select * from objectversiontXh where id_objectpart= Y
Replace the X and Y with correct object type and object ID seen in the Verify & Repair report.
Please note, that some queries may give 0 rows as a result.
If the vault uses Firebird as database engine, please send the metadata copy of the vault to M-Files Support for further investigation. Please check this article and chapter 3.1
/article/How-to-create-metadata-backup-for-M-Files-vault
Sending Data to M-Files (important!)
Please send metadata copies and logs files to M-Files Support via CryptShare Portal, instructions can be found from here: /article/How-to-Send-Files-via-CryptShare-Portal
