Overview
Users may experience the following kind of error when saving email from Outlook by using the M-Files add-in "Save to M-Files" functionality. The error appears after trying to save an object when pressing Create button on the metadata card. The error indicates that property "<Property>" has no value even though the value has been set to this property on the metadata card.
MSOutlookEmailsSaveHelper.cpp, 1521, Creating a new object failed. (0x80040419)
MSOutlookEmailsSaveHelper.cpp, 1958, Creating a new object failed. (0x80040419)
CoVaultObjectOperations.cpp, 571, Creating a new object failed. (0x80040419)
CoVaultObjectOperations.cpp, 2282, Creating a new object failed. (0x80040419)
ClientVaultObjectOperationsHelper.cpp, 577, Creating a new object failed. (0x80040419)
CoMFDocProp.cpp, 440, Creating a new object failed. (0x80040419)
DlgMetadataEditorPopup.cpp, 1685, Creating a new object failed. (0x80040419)
MetadataModel.cpp, 4171, Creating a new object failed. (0x80040419)
MetadataModel.cpp, 4171, The mandatory property "<Property>" has no value. (0x80040010)
MetadataModel.cpp, 5104, The mandatory property "<Property>" has no value. (0x80040010)
CoVaultMountingDocumentOperations.cpp, 192, The mandatory property "<Property>" has no value. (0x80040010)
CoVaultMountingDocumentOperations.cpp, 404, The mandatory property "<Property>" has no value. (0x80040010)
DocumentCache.cpp, 1291, The mandatory property "<Property>" has no value. (0x80040010)
DocumentCache.cpp, 5281, The mandatory property "<Property>" has no value. (0x80040010)
DocumentCache.cpp, 5394, The mandatory property "<Property>" has no value. (0x80040010)
DocumentCache.cpp, 5635, The mandatory property "<Property>" has no value. (0x80040010)
RPCMethodCallWithRetry.h, 36, The mandatory property "<Property>" has no value. (0x80040010)
RPCMethodCallWithRetry.h, 36, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperations.cpp, 14068, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperations.cpp, 8793, The mandatory property "<Property>" has no value. (0x80040010)
MCallInLoop.h, 521, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperationsHelper.cpp, 773, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperationsHelperPrivate.cpp, 8422, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperationsHelperPrivate.cpp, 9106, The mandatory property "<Property>" has no value. (0x80040010)
RPCDocumentOperationsHelperPrivate.cpp, 9397, The mandatory property "<Property>" has no value. (0x80040010)
(M-Files 22.12.12140.4 2023-01-03T09:03:34.533Z)
A similar error could also appear when trying to create a document via an Office program, e.g., Word or Excel.
Solution
One common reason for this kind of error is that there is PrefillingEnabledObjectTypeIDs registry setting defined on the client computer, and there are only some object type IDs defined but not the ID 0 for the Document Object Type. When the registry setting is specified, prefilling is enabled only for those object types and disabled for all other object types.
Detailed information regarding the registry setting:
| Key | HKEY_CURRENT_USER\Software\Motive\M-Files\<M-Files version>\Client\Common\<VaultName>\DocumentPropertiesUI |
| Value name | PrefillingEnabledObjectTypeIDs |
| Value type | REG_MULTI_SZ (Multi-String Value) |
| Description |
You can specify object type IDs for object types that can use prefill functionality by using this registry setting. If it is specified, prefill is enabled only for those object types and not for any other object type. This can be used to prevent M-Files from automatically adding and filling in properties for new objects based on view filters when a new object is created inside a view. If you want to disable prefill for all object types, then enter a high enough value that will not match with any object type ID, like 9999. |
| Value data | IDs of object types for which prefill should be enabled. Prefill will be disabled for all other object types. |
This registry setting is commonly defined via Namespace M-Files.Core.Client.Settings in M-Files Admin tool Configurations - Custom Vault Data
Configuration value for Named Value:
{
"Common": {
"DocumentPropertiesUI": {
"PrefillingEnabledObjectTypeIDs":[ "OT_ID1, OT_ID2" ]
}
}
}
Adding Object type ID 0 for the PrefillingEnabledObjectTypeIDs list enables prefilling for the Document Object type. Logout/login cycle from the M-Files Desktop application on the client computer updates the value to the client computer's registry, and it should remove the error message.
If there are no values defined in this list, it will make prefilling enabled for all the object types.
See also this article , where this setting may cause metadata not getting automatically populated when drag'n'dropping a file into M-Files.
