Overview
Users may get "Data transfer failed" error (example below) when checking in document back to Network Folder Connector external repository location in M-Files.
This error stems from missing deletion rights in the network folder. The Network Folder Connector configuration has "Data Integrity Protection" section with the configuration item "Protection Mode" with a default value of "useBackupFile":
With this value, a backup file is created on the disk to secure the editing when a file is taken for editing via M-Files (checked out). When a file is restored from modification and checked in, this backup file is automatically deleted. If there is no delete permissions set for the user to this folder, the error is given.
Solution
As a workaround for the error, you can change the "UseBackupFile" value to "None." Alternatively, you can verify and change user permissions in the network folder location. More additional information, please see the article NFC - Needed folder permissions.
Example of full error stack:
DocumentCache.cpp, 7729, Data transfer failed. (0x80131620)
DocumentCache.cpp, 19556, Data transfer failed. (0x80131620)
RPCMethodCallWithRetry.h, 21, Data transfer failed. (0x80131620)
RPCMethodCallWithRetry.h, 21, Data transfer failed. (0x80131620)
RPCDocumentOperations.cpp, 11534, Data transfer failed. (0x80131620)
RPCDocumentOperations.cpp, 5620, Data transfer failed. (0x80131620)
MCallInLoop.h, 535, Data transfer failed. (0x80131620)
RPCDocumentOperationsHelper.cpp, 2250, Data transfer failed. (0x80131620)
VaultDBSession.cpp, 143, Data transfer failed. (0x80131620)
DBSession.cpp, 879, Data transfer failed. (0x80131620)
CachedDBSession.cpp, 1263, Data transfer failed. (0x80131620)
TransactionTracker.cpp, 111, Data transfer failed. (0x80131620)
TransactionActions.cpp, 146, Data transfer failed. (0x80131620)
TransactionActions.cpp, 368, Data transfer failed. (0x80131620)
VaultAction_ExternalRepositoryOperations.cpp, 2460, Data transfer failed. (0x80131620)
VaultAction_ExternalRepositoryOperations.cpp, 691, Data transfer failed. (0x80131620)
VaultAction_ExternalRepositoryOperations.cpp, 1823, Data transfer failed. (0x80131620)
VaultAction_ExternalRepositoryOperations.cpp, 2966, Data transfer failed. (0x80131620)
ExternalRepositoryHelper.cpp, 2909, Data transfer failed. (0x80131620)
CoFileContent.cpp, 289, Data transfer failed. (0x80131620)
ManagedError.cpp, 152, Data transfer failed. (0x80131620)
MFiles.ExternalConnectorHost: [CManagedError* CFileContent.Commit(CFileContent*, CManagedError*, UInt32)], IL:0, Data transfer failed. (0x80131620)
MFiles.ExternalConnectorHost: [Void Flush()], IL:72, Data transfer failed. (0x80131620)
MFiles.NetworkFolderConnector: [Void Execute()], IL:16, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [Void InnerInvoke()], IL:15, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [MFiles.Common.Types.ObjVer <StartUpload>b__0()], IL:0, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [MFiles.Extensibility.ExternalRepositories.ObjectVersionIdentity UploadFile(MFiles.Extensibility.ExternalRepositories.ObjectVersionIdentity, MFiles.Extensibility.ExternalRepositories.FileVersionIdentity, System.IO.Stream)], IL:-1, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [Void PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)], IL:442, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)], IL:39, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args)], IL:22, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm)], IL:71, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:66, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:31, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx, IntPtr ctxID, Int32 appDomainID, System.Threading.InternalCrossContextDelegate ftnToCall, System.Object[] args)], IL:-1, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args)], IL:89, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:79, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:72, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:0, There were errors while trying to upload the content. (0x80131600)
MFiles.NetworkFolderConnector: [System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, System.Object[] args, System.Object server, System.Object[]& outArgs)], IL:-1, There were errors while trying to upload the content. (0x80131600)
NetworkFolderSession.cs:line 1353], , Exception of type 'MFiles.Extensibility.ExternalRepositories.Exceptions.AccessDeniedException' was thrown. (0x80131500)
NetworkFolderSession.cs:line 2445], , Exception of type 'MFiles.Extensibility.ExternalRepositories.Exceptions.AccessDeniedException' was thrown. (0x80131500)
(M-Files 24.9.14055.3 2025-01-09T12:47:08.956Z)
Reference Documents
Installing and Configuring M-Files Network Folder Connector.pdf
