Overview
If long paths are not enabled in the Windows operating system, Windows cannot handle paths (full folder path and file name) of more than 260 characters. In this case, long paths will cause various errors in M-Files, which can be observed in different ways.
Long paths can be enabled in the Windows operating system in the client computer according to the registry settings described in this support article.
How to Enable Long Path for M-Files
This article describes different error situations that users can face if long paths are not enabled in Windows on the client computer and if the file path exceeds 260 characters.
Objects are greyed out in M-Files
Objects with long paths are displayed greyed out in M-Files. This can happen if the view path length + object name exceeds 260 characters. When trying to open such an object, the following kind of error is displayed:
File converted to multifile document
If the file is converted to a multifile document path and the file name length exceeds the limit, it may lead to an error message since the original path "<Path>/FileName" may lead to "<Path>/FileName/FileName" in multifile document case.
In this kind of situation, the following error may be shown:
CustomControlSite.cpp, 1051, The system cannot find the file specified. (0x80070002)
Top Pane: TabController.js, 371, The system cannot find the file specified. (0x80070002)
MDispatchExImpl.h, 687, The system cannot find the file specified. (0x80070002)
MDispatchExImpl.h, 834, The system cannot find the file specified(0x80070002)
CoScriptDelegate_SidePaneTab.cpp, 511, The system cannot find the file specified. (0x80070002)
SidePaneTabCtrl.cpp, 2789, The system cannot find the file specified. (0x80070002)
SidePaneTabCtrl.cpp, 986, The system cannot find the file specified. (0x80070002)
ViewerPaneContent.cpp, 167, The system cannot find the file specified. (0x80070002)
ViewerPaneContent.cpp, 435, The system cannot find the file specified. (0x80070002)
FileHelper.cpp, 3566, The system cannot find the file specified. (0x80070002)
(M-Files 20.6.9181.4)
Errors in Acrobat Reader
The error "There was an error opening this document. This file cannot be found." or "There was an error opening this document. Access Denied." may be shown from Adobe Acrobat Reader if trying to open a file where the path length is exceeded:
Errors in AutoCAD
The following error "Invalid file name." may be shown in AutoCAD if trying to open a file where the path length is exceeded:
