Overview
Replication import job might fail with SQL Count Mismatch error:
The job "Content import" finished running.
Status: Failed. Error: Import of a content package failed.
Source: D:\Temp\{7BC06196-1677-47A8-AD67-D9468DD16683}_20211027_165121\Index.xml
Vault ID: {86815E6C-26BC-42DE-B201-28A266B20FBE}
Import of the object "38471 ({5A3191A7-F2F2-4973-99A3-BEDC4453D1AE})" from a content package failed.
Error 50000, Level 11, State 1, Procedure -, Line 1, Message: Count mismatch SQL error. [1] (ERROR: 50000, SQLSTATE: 42000)
Solution
Please run Verify & Repair (Quick) in M-Files Admin tool. If it reports errors like this:
Error 1:
Some of the object information in the database is inconsistent.
The "LatestCheckedInVersion" field has an incorrect version number.
Object type 0, object ID 41471.
NOTE: M-Files cannot fix this error automatically. (3853)
This is known issue ID 162598 and it is fixed in M-Files May'22 Update.
As a workaround database needs to be fixed manually, send the error report to M-Files Support.
Fixing the Verify & Repair errors solves the replication issue.
Please also check this Support article:
