Overview
Running the Data Reporting Set export job from the Reporting and Data Export section of the M-Files Admin may give the below error in the Windows Event Viewer.Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02)
Scheduler.cpp, 155, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
TaskItf.cpp, 81, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
TaskItf.h, 146, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
DatasetExport.cpp, 518, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
OLEDBStorageProvider.cpp, 178, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
OLEDBStorageProvider.cpp, 1437, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
OLEDBStorageProvider.cpp, 1668, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
MCommand.h, 503, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
MCommand.h, 879, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
MCommand.h, 502, Invalid object name '_ExportInProgress'. (ERROR: 208, SQLSTATE: 42S02) (0x80040E37)
(M-Files 20.10.9524.7)
Solution
First make sure that you user you are using for the export, in this case "test", has at least "dbowner" permissions to the database. This is because this job will need to DROP tables, as well as CREATE/ALTER which requires at least dbowner privileges. If the user does not have these, you will need to grant them to the user account from SQL Server Management Studio.Does this Vault have Audit Trail features enabled? If the Vault has Compliance 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.
