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

Error 0x8004099C when configuring an external database connection for an object type in M-Files

Last updated on 28 March 2025 · 2 min read

Admin
Connections to External Databases (Integrated)

Overview

You may get an error similar to the one below when configuring the database connection for an external object type in M-Files (line numbers may vary depending on the M-Files version).

MPropertyPage2.cpp, 100, <Object type> (<Object type ID>) (0x8004099C)

MPropertySheet2.cpp, 142, <Object type> (<Object type ID>) (0x8004099C)

PropertySheetObjectType.cpp, 248, <Object type> (<Object type ID>) (0x8004099C)

Item_ObjectType.cpp, 763, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesAdminHelper.cpp, 39, <Object type> (<Object type ID>) (0x8004099C)

IRPCObjectTypesAdmin.generated.cpp, 2104, <Object type> (<Object type ID>) (0x8004099C)

gRPCClient.cpp, 497, <Object type> (<Object type ID>) (0x8004099C)

gRPCClient.cpp, 466, <Object type> (<Object type ID>) (0x8004099C)

gRPCClient.cpp, 99, <Object type> (<Object type ID>) (0x8004099C)

gRPC.generated.cpp, 21405, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesAdmin.cpp, 714, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesHelper.cpp, 10376, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesHelper.cpp, 18556, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesHelper.cpp, 26287, <Object type> (<Object type ID>) (0x8004099C)

RPCObjectTypesHelper.cpp, 26392, <Object type> (<Object type ID>) (0x8004099C)

(M-Files <version> <timestamp>)

This indicates that the deprecated SQLOLEDB provider is being used, and its use is no longer allowed in your environment.

Solution

Use the "Microsoft OLE DB Driver for SQL Server" (MSOLEDBSQL) instead of "Microsoft OLE DB Provider for SQL Server" (SQLOLEDB). See Provider Recommendations for External Database Connections.

In addition, after the provider has been changed, you may get errors:

  • "To complete this operation, your login account needs to have the "System administrator" server role enabled, or the connection provider needs to be added to the whitelisting configuration. (0x80040928)"
  • "To complete this operation, your login account needs to have the "System administrator" server role enabled, or the property needs to be added to the whitelisting configuration. (0x80040929)"

If you need help with these errors, please contact M-Files Support.

Still need help?

On this page