Home
About
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/Common problems

Documents with long name and path can't be opened in M-Files

Last updated on 12 March 2025 · 1 min read

Admin
M-Files Desktop

Overview

There are Windows as well application specific limitations on how long paths are supported and can be opened, for example MS Word has this limit of around 255 characters. In cases where long file names are used, the combination of "Vault name + multi-file document name + Document name" can cause the allowed total path length to be exceeded and prevent the document being opened in M-Files. 

Solution

In these cases, M-Files will automatically shorten the path length so documents can be accessed correctly for most common applications. However, in cases where the document is not opened in M-Files due to long path the following registry setting can be used. This will set the used default limit for shortening paths when documents are opened through M-Files.

Registry key: HKEY_CURRENT_USER\Software\Motive\M-Files\<version>\Client\MFShell\NonVaultSpecifics\MaxPathLengthsForFileClasses

Value name: DefaultAllClasses   

Value type: DWORD

Value data: 200 (Default 260)

Please note that this registry needs also the Operating system specific long path support to be enabled, as discussed here:  How to Enable Long Path for M-Files

Still need help?

On this page