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/Error resolution

Permission issues caused by class change

Last updated on 21 February 2021

Admin
M-Files Admin

Overview

Sometimes there might be need for the class change of an object, e.g. for certain document. In such situation user may get "Access denied" error message when changing class. This error is derived from insufficient permissions. This article describes two different cases where this situation may occur and what causes the problem.

Case 1- description and solution

When changing class of certain object from one to another via metadata card the following error stack may occur.
CoScriptObjectFactory.cpp, 279, Access denied. (0x800407E4)
ScriptErrorHelper.cpp, 96, Access denied. (0x800407E4)
MDispatchExImpl.h, 686, Access denied. (0x800407E4)
MDispatchExImpl.h, 833, Access denied. (0x800407E4)
MetadataCardAction.cpp, 386, Access denied. (0x800407E4)
MetadataCardAction.cpp, 570, Access denied. (0x800407E4)
MetadataEditor.cpp, 2812, Access denied. (0x800407E4)
MetadataModel.cpp, 4238, Access denied. (0x800407E4)
MetadataModel.cpp, 4627, Access denied. (0x800407E4)
ElectronicSignatureUIHelper.cpp, 235, Access denied. (0x800407E4)
MetadataModel.cpp, 12071, Access denied. (0x800407E4)
CoVaultMountingDocumentOperations.cpp, 3127, Access denied. (0x800407E4)
DocumentCache.cpp, 11058, Access denied. (0x800407E4)
DocumentCache.cpp, 11167, Access denied. (0x800407E4)
DocumentCache.cpp, 19234, Access denied. (0x800407E4)
RPCMethodCallWithRetry.h, 35, Access denied. (0x800407E4)
RPCMethodCallWithRetry.h, 35, Access denied. (0x800407E4)
RPCDocumentOperations.cpp, 12485, Access denied. (0x800407E4)
RPCDocumentOperations.cpp, 7382, Access denied. (0x800407E4)
MCallInLoop.h, 652, Access denied. (0x800407E4)
RPCDocumentOperationsHelper.cpp, 3922, Access denied. (0x800407E4)
RPCDocumentOperationsHelper.cpp, 3460, Access denied. (0x800407E4)
RPCDocumentOperationsHelperPrivate.cpp, 6997, Access denied. (0x800407E4)
RPCDocumentOperationsHelperTemplates.cpp, 308, Access denied. (0x800407E4)
RPCDocumentOperationsHelper.cpp, 20355, Access denied. (0x800407E4)
RPCDocumentOperationsHelper.cpp, 8055, Access denied. (0x800407E4)
RPCPropertyDefsHelper.cpp, 7609, Access denied. (0x800407E4)
RPCPropertyDefsHelper.cpp, 7609, You are not allowed to add, modify, or remove the property "<PROPERTY>". (0x80040442)
(M-Files 20.4.8924.0)

This error happens due to user has insufficient permission to edit the values of property <PROPERTY>. This property may be defined as required in the target class user is trying to change the object.
In such situation the reason is likely that there is no "Edit values of this property" selected for user in property's Property Definition Properties. (see example picture below)
Either vault's admin user should make the class change in such situation or property's permissions is needed to be extended for specific user.


 

Case 2 - description and solution

In some situations when changing class of certain object from one to another via metadata card similar error stack may occur but with difference on the last line.
The current permissions for the object do not allow any permission changes, neither directly nor derived from the object metadata. (0x800408A6)
This error can happen even though user has all sufficient edit permissions to object. The reason for the error is the lack of Change permissions for the object.
Such situation may occur for example if source class has static permissions (e.g. full control for all internal users) and target class has dynamic permission (e.g. automatic permission via property and this property is defined as required in target class).
In this kind of situations Change permission privileges are needed for the object. Admin user could perform the class change in this case also if permissions is not wanted to be extended for specific user.
 

Still need help?