Overview
Users can run into an error when a property has automatic values and simple automatic numbering is in use. If there are multiple users and/or external sources saving to M-Files the same object class type at the same time, the system might not be able to determine the correct automatic numbering.
Pic. 1: Error message
Example Error stack
<MetadataEditor>, -, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) ScriptErrorHelper.cpp, 96, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MDispatchExImpl.h, 679, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MDispatchExImpl.h, 841, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MetadataCardAction.cpp, 386, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MetadataCardAction.cpp, 560, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MetadataEditor.cpp, 2956, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MetadataModel.cpp, 4473, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MetadataModel.cpp, 5313, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) CoVaultMountingDocumentOperations.cpp, 198, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) CoVaultMountingDocumentOperations.cpp, 446, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) DocumentCache.cpp, 1290, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) DocumentCache.cpp, 5282, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) DocumentCache.cpp, 5395, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) DocumentCache.cpp, 5616, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) IRPCObjectOperations.generated.cpp, 959, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) gRPCClient.cpp, 497, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) gRPCClient.cpp, 466, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) gRPCClient.cpp, 99, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) gRPC.generated.cpp, 13181, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) RPCDocumentOperations.cpp, 8343, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) MCallInLoop.h, 530, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) RPCDocumentOperationsHelper.cpp, 782, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) RPCDocumentOperationsHelperPrivate.cpp, 8663, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) RecalculateProperties.cpp, 446, Calculation of the automatic value of the property "Document Number" failed. (0x80040107) RecalculateProperties.cpp, 446, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) RecalculateProperties.cpp, 1622, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) RecalculateProperties.cpp, 1270, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) RPCPropertyDefsHelper.cpp, 7451, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) CachedDBSession.cpp, 1067, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) CachedDBSession.cpp, 1144, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) SQLHelper.cpp, 6889, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) CachedDBSession.cpp, 1142, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) MCommand.h, 584, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) MCommand.h, 843, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) MCommand.h, 786, The operation you requested was unsuccessful due to a concurrent operation performed by another user or process. Try performing the operation again. If the problem persists, contact your M-Files system administrator. (0x80040485) (M-Files <version> <timestamp>)
Solution
Here are some possible solutions or workarounds.
- Users should retry the creation of the object from the beginning.
- Check connection to external sources and folders and plan the frequency and timing such that it would not load the system when the are several users creating the same object types.
- Instruct users to save their work at different times if possible so the load would be more even and there would be a lower chance of parallel requests.
- Instead of using simple automatic numbering, consider using the Object ID as a value for a number property by defining a simple concatenating of properties in the M-Files Admin tool. (Note: the property must be class-specific)
- Create a custom vault application or a script.
