Overview
You might see following kind of error in M-Files Admin or Clients (Desktop, Web, Mobile) when trying to perform some operation: "The operation can't be done right now because the vault is going offline.".
MCallInLoop.h, 300, The operation can't be done right now because the vault is going offline. (0x80040982)
MCallInLoop.cpp, 809, The operation can't be done right now because the vault is going offline. (0x80040982)
RPCNamedValueStorageHelper.cpp, 232, The operation can't be done right now because the vault is going offline. (0x80040982)
VaultDBSession.cpp, 659, The operation can't be done right now because the vault is going offline. (0x80040982)
VaultDBSession.cpp, 1129, The operation can't be done right now because the vault is going offline. (0x80040982)
(M-Files 25.9.15198.6 2025-10-06T09:11:33.346Z)
Solution
Most probably this is caused by scheduled job: 'Optimize Database (Thorough)'. It is trying to take vault offline, but it is stuck and prevents optimization job to proceed and this also causes the error message.
Please check the status of optimization in M-Files Admin tool: Vault -> Scheduled Optimization. If the status has been long time 'Step 3/13', optimization is stuck.
This is known issue, ID: ADI-500 and fix is included in M-Files 25.10 release.
As a workaround, M-Files Server services needs to be restarted to solve this.
If you still phase the issue after updating M-Files to version 25.10, before restarting the services, please take two memory dumps from mfserver.exe process with 5 minutes interval. Please send those memory dumps to M-Files Support for further analysis using Cryptshare.
Please note, that this article is valid only if dtSearch is used as a search engine in the vault. If the search engine is IDOL or Smart Seach, vault is not taken offline during the optimization.
