Overview
If you see the following error or anything with Access Denied for a reporting data export even if the export used to work before.The metadata export job "{049EE6A0-867D-41E0-A37A-B4B900F95E1C}-TEST" failed.
Access denied.
Scheduler.cpp, 155, The metadata export job "{049EE6A0-867D-41E0-A37A-B4B900F95E1C}-TEST" failed. (0x80040899)
TaskItf.cpp, 81, The metadata export job "{049EE6A0-867D-41E0-A37A-B4B900F95E1C}-TEST" failed. (0x80040899)
TaskItf.h, 146, The metadata export job "{049EE6A0-867D-41E0-A37A-B4B900F95E1C}-TEST" failed. (0x80040899)
DatasetExport.cpp, 524, The metadata export job "{049EE6A0-867D-41E0-A37A-B4B900F95E1C}-TEST" failed. (0x80040899)
DatasetExport.cpp, 524, Access denied. (0x800407E4)
DatasetExport.cpp, 637, Access denied. (0x800407E4)
VaultDataExport.cpp, 420, Access denied. (0x800407E4)
IRPCLogin.generated.cpp, 1206, Access denied. (0x800407E4)
gRPCClient.cpp, 488, Access denied. (0x800407E4)
gRPCClient.cpp, 453, Access denied. (0x800407E4)
gRPCClient.cpp, 88, Access denied. (0x800407E4)
gRPC.generated.cpp, 7976, Access denied. (0x800407E4)
RPCLogin.cpp, 1274, Access denied. (0x800407E4)
(M-Files 20.9.9430.4)
Solution
Does this Vault have Audit Trail features enabled? If the Vault has this enabled, and the data set is set to run with a specific user identity, this action is not allowed by default to ensure audit log always has the correct user.You can try the following:
1. Data Set properties => Advanced => Use the identity of the following user when reading data: (M-Files Server)
2. Try refreshing the data set. This should enable the export without using the AllowUserImpersonationWith21CFRPart11Compliance registry setting while the advanced event log is in use.
3. If the error still happens after that, try setting the following registry setting on the server:
HKEY_LOCAL_MACHINE\SOFTWARE\Motive\M-Files\<version>\Server\MFServer
AllowUserImpersonationWith21CFRPart11Compliance (DWORD): 1
4. Restart M-Files Server after setting the registry setting
5. Try refreshing the data set.
