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

M-Files External Object Network or Connection Error When Using Microsoft OLE DB Driver for SQL Server

Last updated on 30 September 2024

Admin
Connections to External Databases (Integrated)

Overview

After creating a new external object using the Microsoft OLE DB Driver for SQL Server (according to Connections to External Databases for Object Types (m-files.com)), you may run into an issue where the object refresh seemingly runs indefinitely, and the following errors or similar may appear in your M-Files Server Event and Ground Link trace log:

mscorlib: [System.String ExecuteExtensionMethod(MFiles.Extensibility.Applications.IOperationContext, System.String, System.String, System.String)], IL:0, The remote call to IGroundApplicationV1.ExecuteExtensionMethodWithAccessCheck() timed out after 720000 ms. (0x80131505)

mscorlib: [System.String ExecuteExtensionMethodWithAccessCheck(MFiles.Extensibility.Applications.IOperationContext, MFiles.Extensibility.Applications.IExtensionMethodTarget, System.String, System.String, System.String)], IL:-1, The remote call to IGroundApplicationV1.ExecuteExtensionMethodWithAccessCheck() timed out after 720000 ms. (0x80131505)

mscorlib: [Void PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)], IL:442, The remote call to IGroundApplicationV1.ExecuteExtensionMethodWithAccessCheck() timed out after 720000 ms. (0x80131505)

mscorlib: [Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)], IL:39, The remote call to IGroundApplicationV1.ExecuteExtensionMethodWithAccessCheck() timed out after 720000 ms. (0x80131505)

(M-Files <version> <timestamp>)
Microsoft OLE DB Driver for SQL Server: [System.Data.OleDb.OleDbDataReader.ReadRowset()], IL:37, Unspecified error. (Protocol error in TDS stream

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.) (0x80004005)

Microsoft OLE DB Driver for SQL Server: [System.Data.OleDb.OleDbDataReader.GetRowHandles()], IL:156, Unspecified error. (Protocol error in TDS stream

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.

Communication link failure

TCP Provider: An existing connection was forcibly closed by the remote host.) (0x80004005)

(M-Files <version> <timestamp>)


Thus, the external refresh is never able to complete, as it gets cut off and it automatically restarts in a loop. 

Solution

This issue likely stems from the external SQL server having multiple IP addresses to due to it being a multi-subnet failover cluster. The Microsoft OLE DB Driver used in M-Files does not have multi-subnet failover enabled by default; thus, when the IP address of the SQL Server switches over, it cannot reconnect to the DB fast enough and the refresh process is restarted from the beginning.

To resolve this in M-Files Admin:

  1. Navigate to Metadata Structure (Flatview) -> Object Types, right-click on the affected external object(s) and select Properties. 
  2. Navigate to the Connection to External Database tab and select Configure. This will open the External Object Type Connector configuration settings. 

image.png

  1. In the EOT Connector Configuration, Expand the Service-Specific Settings and Connection to External Database. 
  2. Navigate down to Advanced Options, and in this field add MultiSubnetFailover=True
    image.png
  3. Save the configuration and close it. 

This setting enables faster reconnection after failover of either an Availability Group (AG) or Failover Cluster Instance (FCI) by retrying TCP connection attempts faster than the operating system’s default TCP retransmit intervals. It allows the M-Files Client to try IP addresses simultaneously and connect to the first server that responds, minimizing recovery latency during failovers. This should allow the refresh to complete successfully. 

Still need help?

On this page