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

SharePoint dashboard fails to initialize when Location (site) has special symbols

Last updated on 17 November 2022 · 4 min read

Admin
M-Files for Microsoft SharePoint

Overview

When you set up a SharePoint connection, and go back to the connector dashboard (not the connection, but the top-level connector), the dashboard may fail to initialize in a manner similar to the image and error below.

image.png

Exception

Error: An error occurred while parsing EntityName. Line 1, position 179.

 at MFilesErrorHelper.GetAsyncRejectionError (/lib/mfiles/MFilesErrorHelper.js:24:17)

 at Anonymous function (/lib/mfiles/helpers/ExtendedVaultExtensionMethodCaller.js:95:25)

AsyncCaller.cpp, 365, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

CoVaultExtensionMethodOperations.cpp, 269, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

LatestRPC.generated.cpp, 46834, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

RPCVaultExtensionMethods.cpp, 489, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

RPCVaultExtensionMethods.cpp, 367, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

MCallInLoop.h, 712, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

RPCVaultExtensionMethods.cpp, 679, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

CoApplicationHost.cpp, 276, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

ManagedError.cpp, 150, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [CManagedError* CApplicationHost.ExecuteExtensionMethod(CApplicationHost*, CManagedError*, MFilesAPIExternalConnectors.IVault*, _GUID, Char*, Char*, Char*, Char*, CMF_String*)], IL:21, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.String ExecuteExtensionMethod(MFilesAPI.Vault, System.Guid, System.String, System.String, System.String, System.String)], IL:447, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.String ExecuteExtensionMethod(MFiles.Extensibility.Applications.IOperationContext, System.String, System.String, System.String)], IL:-1, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [Void PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)], IL:442, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)], IL:39, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args)], IL:22, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm)], IL:71, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:66, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:31, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx, IntPtr ctxID, Int32 appDomainID, System.Threading.InternalCrossContextDelegate ftnToCall, System.Object[] args)], IL:-1, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args)], IL:89, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:79, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:72, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:0, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, System.Object[] args, System.Object server, System.Object[]& outArgs)], IL:-1, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.StatusDashboard.ToString()], IL:0, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.StatusDashboard.Generate()], IL:18, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.DashboardContentCollection.Generate(System.Xml.XmlDocument xml)], IL:27, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.DashboardList.Generate(System.Xml.XmlDocument xml)], IL:380, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.DashboardListItem.Generate(System.Xml.XmlDocument xml)], IL:382, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [MFiles.VAF.Configuration.Domain.Dashboards.DashboardCustomContent.Generate(System.Xml.XmlDocument xml)], IL:83, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Xml.XmlLoader.ParsePartialContent(System.Xml.XmlNode parentNode, System.String innerxmltext, System.Xml.XmlNodeType nt)], IL:150, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)], IL:603, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Xml.XmlTextReaderImpl.Read()], IL:447, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Xml.XmlTextReaderImpl.ParseEntityReference()], IL:49, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

System.Xml: [System.Xml.XmlTextReaderImpl.ParseEntityName()], IL:53, An error occurred while parsing EntityName. Line 1, position 179. (0x80131940)

(M-Files 22.5.11436.3 2022-07-07T10:08:57.936Z)

Solution

The error indicates an invalid character was present in a connection configuration, most likely an ampersand (&) symbol in the URL (the Location) of the connection.

The issue should affect only the display of the dashboard in the M-Files Admin.

You can resolve it by:

  1. Find the problematic connection (look for various special characters in its configuration)
  2. Save its configuration (get it from the Advanced tab) and edit it to not contain the special character
  3. Remove the connection (you can do so by right clicking it in the list and selecting "Remove Connection"). You cannot change the location of an already saved connection.
  4. Add a new connection with the fixed settings.

The connector needs only the site URL so, when setting up the connection, you should copy only the SharePoint site URL without any extra querystring parameters.

This behavior of the dashboard is logged for improvement with ID 164095, you can monitor the release notes for it. It will be fixed in versions of the M-Files Connector for SharePoint Online version 22.2.66.0 and later when available.

Still need help?

On this page