Scenario and symptoms
Let's assume you have created GPO object to distribute M-Files vault settings from Active Directory.However, in user's computers vault connections do not stay enabled and list of document vault connections in M-Files Desktop Settings is empty. Restarting M-Files Client service from task manager restores the document vault connections temporarily but vault connections does not stay enabled. M-Files virtual drive in Windows Explorer has vault connections included.
Additionally, there could be problems to check-out objects and in vault with "The specified document vault does not exist." error.
M-Files virtual drive in Windows Explorer:
Document vault connections have disappeared from M-Files Desktop settings:
There is this kind of error in Windows event viewer log in client computer:
CoVaultConnections.cpp, 171, The specified document vault does not exist. (<vault>) (0x80040020)
CoVaultConnections.cpp, 64, The specified document vault does not exist. (<vault>) (0x80040020)
VaultHelper.cpp, 517, The specified document vault does not exist. (<vault>) (0x80040020)
VaultHelper.cpp, 517, Registry key is missing. The key is:
HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\<vault>\. (0x800434BD)
VaultHelper.cpp, 321, Registry key is missing. The key is: HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\<vault>\. (0x800434BD)
RegistryHelper.cpp, 1637, Registry key is missing. The key is: HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\<vault>\. (0x800434BD)
RegistryHelper.cpp, 1532, Registry key is missing. The key is:
HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\<vault>\. (0x800434BD)
(M-Files <version>)
Solution
When creating GPO settings to distribute vault connections to workstations make sure GUID is not set in GPO object.For example, when exporting document vault connections from M-Files Desktop Settings -> Settings -> Export Document vault connections, the export for document vault settings is following:
[HKEY_CURRENT_USER\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\sample vault]
"ID"=dword:00000011
"InfoTip"="Browse to this folder to view the contents of this document vault."
"ProtocolSequence"="ncalrpc"
"NetworkAddress"=""
"Endpoint"="MFServerCommon_F5EE352D-6A03-4866-9988-C69CEA2C39BF"
"Secured"=dword:00000000
"ServerVaultGUID"="{C95C9728-1668-4FB9-9518-06867D08B02D}"
"ServerVaultName"="Sample Vault"
"AuthType"=dword:00000001
"AutoLogin"=dword:00000000
"HTTPProxy"=""
"SPN"=""
Notice that GUID is absent here.
When viewing the same vault connection in Windows registry editor, there is GUID present:
Example from the same vault connection from registry:
\HKEY_CURRENT_USER\SOFTWARE\Motive\M-Files\<version>\Client\MFClient\Vaults\Sample Vault
The GUID needs to be blank for the GPO object as its generated by the client for the user.
If the GUID is present in the GPO object M-Files will misfunction.
Solution to fix the issue to remove GUID from GPO object and from problematic workstation registry.
It will then be re-generated by M-Files client.
