Overview
The file data temporary folder can be defined via the registry setting TempPath, as described in this article.Paths with double \ in this registry setting (e.g., C:\\Temp\\M-Files Filedata) are working otherwise but not with the Smart Search search engine.
In this case, when enabling Smart Search, indexing does not start at all, and there is the following error written in the M-Files application server's Windows Event log:
M-Files Online
Vault ID: {<vault_guid>}
Index name: SmartSearch_Index
Partition:
The M-Files indexer failed to index the vault: "<vault_guid>".
Index name: "SmartSearch_Index". Indexing request type: "Default".
Indexing objects in the single pipeline failed.
The filename, directory name, or volume label syntax is incorrect.
Indexer.cpp, 1237, The M-Files indexer failed to index the vault: "<vault_guid>". (0x80040885)
Indexer.cpp, 1234, Index name: "SmartSearch_Index". Indexing request type: "Default". (0x80040120)
Indexer.cpp, 1220, Indexing objects in the single pipeline failed. (0x80040120)
Indexer.cpp, 1974, Indexing objects in the single pipeline failed. (0x80040120)
Indexer.cpp, 2382, Indexing objects in the single pipeline failed. (0x80040120)
CombinedIndexer.cpp, 325, Indexing objects in the single pipeline failed. (0x80040120)
CombinedIndexer.cpp, 728, Indexing objects in the single pipeline failed. (0x80040120)
CombinedIndexer.cpp, 728, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
CombinedIndexer.cpp, 1608, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
ObjectCombinedIndexJob.cpp, 432, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
MFAutonomyHelper3.cpp, 1614, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
MFAutonomyHelper3.cpp, 11423, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
ObjectCombinedIndexingPureDS.cpp, 447, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
ObjectCombinedIndexingPureDS.cpp, 1793, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
ObjectCombinedIndexingPureDS.cpp, 1855, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
ObjectCombinedIndexingPureDS.cpp, 1641, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
FileHelper.cpp, 5382, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
FileHelper.cpp, 5424, The filename, directory name, or volume label syntax is incorrect. (0x8007007B)
(M-Files 22.3.11237.6)
Solution
You can resolve the issue by removing the double \ in the TempPath registry value and restarting the vault. Use a single \ in the path instead.This issue (ID 165656) is fixed on the M-Files server March'23 release (23.3.12441.6) and later as mentioned in the release note page.
