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

"The process cannot access the file because it is being used by another process" message in server

Last updated on 28 September 2020

Admin
Search

Overview

This article describes possible solutions for the following error appearing in Windows event viewer log in M-Files server:

M-Files 2018
Vault ID: {12345678-1234-1234-1234-123456789012}
Index name: Filedata
Partition:
The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt)
Indexer.cpp, 955, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
Indexer.cpp, 599, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
Indexer.cpp, 1916, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexingHelper2.cpp, 93, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexingHelperPrivate.cpp, 1566, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexingHelperPrivate.cpp, 1675, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexUpgradeHelperPrivate.cpp, 197, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexingHelperPrivate.cpp, 284, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
IndexingHelperPrivate.cpp, 1941, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
FileHelper.cpp, 157, The process cannot access the file because it is being used by another process. (C:\Program Files\M-Files\Server Vaults\Indexes\FileData\M-Files\IndexLock.txt) (0x80070020)
 


Solution

Possible reasons for this error message are:
  • Error can be caused by having the same "Location for secondary data on the M-Files server" for two different vaults. Please check all the SQL based Vaults and that there is a separate secondary data location defined (vault context menu → Properties → Advanced, see "Location for Secondary data on M-Files server")If more than one vault is referring to the same directory, the same index file is used which may lead to this error. Before changing possible secondary data location, the user should take vault backups and backup also in the C:\Program Files\M-Files\ServerVaults\Indexes folder. The affected indices are likely corrupt (may contain data from two different vaults) so index rebuild should be done.
  •  Error could be related to anti-virus real time scanning. Please make sure that M-Files server anti-virus settings are set according to user manual: https://www.m-files.com/user-guide/latest/eng/m-files_and_virus_scanning.html


 

Still need help?

On this page