3. Troubleshooting and support

This guide covers common issues, diagnostic steps, and what to capture for support.

3.1. Synchronization errors

Occurs when the object version in SQL is incompatible with the version in M‑Files. Typical causes:

  • SQL-side change processed before the latest M‑Files version was fetched.

  • Users changed objects in M‑Files that are expected to be updated only via SQL.

On sync error, the class table Process_ID is set to 2. When no precedence is set for the class, the error is also written to MFLog, which sends the error email. See the detailed guide:

3.2. Diagnostics quickstart

  • Review latest errors: select from MFLog ordered by LogID desc; copy ErrorMessage fully.

  • Check class table for non-zero Process_ID rows (should be 0 when clean).

  • Inspect batches: recent rows in MFProcessBatch and steps in MFProcessBatchDetail.

  • Context menu health: review entries in MFContextMenu; reset IsProcessRunning if stuck for >30 minutes.

Email samples and error categories are included here:

3.3. A class table update runs but nothing reaches SQL

If spMFUpdateTable, or a procedure that calls it, finishes without an error in SSMS but no records arrive in the class table, check these in order:

  1. Read MFLog for the run. Errors are logged there even when SSMS shows none, for example an out-of-memory error on a large class.

    SELECT TOP 20 LogID, CreateDate, SPName, ProcedureStep, ErrorMessage
    FROM dbo.MFLog
    ORDER BY LogID DESC;
    
  2. Check the class table name and the accounts. @MFTableName must match MFClass.TableName for the class. The SQL login that runs the update must be in the db_MFSQLConnect role (see Security), and spMFVaultConnectionTest must connect to the vault.

  3. Read the process batch tables for the run: the batch in MFProcessBatch and its steps in MFProcessBatchDetail.

    SELECT TOP 10 * FROM dbo.MFProcessBatch ORDER BY ProcessBatch_ID DESC;
    
    SELECT *
    FROM dbo.MFProcessBatchDetail
    WHERE ProcessBatch_ID = 1234   -- the ProcessBatch_ID of the run
    ORDER BY ProcessBatchDetail_ID;
    
  4. For a large class, or a first load, use batch mode. Updating a large class in one run can fail for lack of memory. Use spMFUpdateTableinBatches; see Update large tables in bulk using batch mode.

If these show nothing for the run, collect the details listed under What to capture for support and contact support.

3.4. Auto‑correction via precedence

Set precedence per class in MFClass.SynchPrecedence (null: none; 0: SQL; 1: M‑Files). When it is set, spMFUpdateTable corrects sync errors at the end of the same run by calling spMFUpdateSynchronizeError. To correct errors left from an earlier run, see Correcting synchronization errors.

3.5. What to capture for support

  • Procedure name and parameters used.

  • ProcessBatch_ID and relevant MFProcessBatchDetail entries.

  • Relevant MFLog rows (full ErrorMessage) and MFUpdateHistory IDs if present.

  • Connector version, vault identifier, and whether VAF logging is enabled.