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 SharePoint Connector Fails at Authentication with Invalid Pointer Error

Last updated on 23 September 2024

Admin
M-Files for Microsoft SharePoint

Overview

The following error may be seen in M-Files when trying to authenticate into a SharePoint Online external repository.

ShellFrameWnd.cpp, 5462, Invalid pointer. (0x80004003)
ShellFrameWnd.cpp, 17716, Invalid pointer. (0x80004003)
DocListView.cpp, 3343, Invalid pointer. (0x80004003)
DocListView.cpp, 11798, Invalid pointer. (0x80004003)
DocListView.cpp, 12631, Invalid pointer. (0x80004003)
FolderObjectsEnum.cpp, 82, Invalid pointer. (0x80004003)
FolderObjectsEnum.cpp, 60, Invalid pointer. (0x80004003)
CoShellFolder.cpp, 4318, Invalid pointer. (0x80004003)
VaultSearchOperations.cpp, 62, Invalid pointer. (0x80004003)
VaultSearchOperations.cpp, 153, Invalid pointer. (0x80004003)
ThreadOutCaller.cpp, 67, Invalid pointer. (0x80004003)
ThreadOutCaller.cpp, 581, Invalid pointer. (0x80004003)
VaultMethodCallTasks.cpp, 194, Invalid pointer. (0x80004003)
CoVaultMountingSearch.cpp, 189, Invalid pointer. (0x80004003)
VaultStateSearch.cpp, 215, Invalid pointer. (0x80004003)
ListingCache.cpp, 487, Invalid pointer. (0x80004003)
ListingCache.cpp, 1590, Invalid pointer. (0x80004003)
ListingCache.cpp, 1902, Invalid pointer. (0x80004003)
ListingCacheNode.cpp, 1049, Invalid pointer. (0x80004003)
ListingCacheNode.cpp, 1321, Invalid pointer. (0x80004003)
ListingCacheNode.cpp, 9627, Invalid pointer. (0x80004003)
ListingCacheNode.cpp, 5584, Invalid pointer. (0x80004003)
ListingCacheNode.cpp, 14818, Invalid pointer. (0x80004003)
IRPCSearch.generated.cpp, 1853, Invalid pointer. (0x80004003)
gRPCClient.cpp, 497, Invalid pointer. (0x80004003)
gRPCClient.cpp, 466, Invalid pointer. (0x80004003)
gRPCClient.cpp, 99, Invalid pointer. (0x80004003)
gRPC.generated.cpp, 24317, Invalid pointer. (0x80004003)
RPCSearch.cpp, 546, Invalid pointer. (0x80004003)
MCallInLoop.h, 535, Invalid pointer. (0x80004003)
RPCSearchHelper.cpp, 2916, Invalid pointer. (0x80004003)
RPCSearchHelper.cpp, 4100, Invalid pointer. (0x80004003)
ExternalRepositoryHelper.cpp, 1901, Invalid pointer. (0x80004003)
CoContentProviderHost.cpp, 140, Invalid pointer. (0x80004003)
ManagedError.cpp, 152, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [CManagedError* CContentProviderHost.GetFolderContents(CContentProviderHost*, CManagedError*, CMF_ExtensionCallInformation*, CMF_ExternalRepositoryID*, UInt32, RPCServerArray<CMF_SearchResultsItem>*, RPCServerArray<CMF_ExternalView>*)], IL:27, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [MFiles.Common.Types.FolderContents GetFolderContents(MFiles.ExternalConnectorHost.CallContext, MFiles.Common.Types.ExternalRepositoryID, Int32)], IL:70, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [TResult ForSystem[TResult](MFiles.ExternalConnectorHost.CallContext, System.String, MFiles.Common.Types.ExtensionAuthenticationResponse, System.Func`2[MFiles.ExternalConnectorHost.RepositoryConnectorHosting.RepositoryConnectorContext,TResult], MFiles.ExternalConnectorHost.RepositoryConnectorHosting.ExplicitLogin, MFiles.ExternalConnectorHost.RepositoryConnectorHosting.DenyUserInteraction)], IL:175, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [MFiles.ExternalConnectorHost.RepositoryConnectorHosting.SessionCache.CacheableSession GetSession(MFiles.ExternalConnectorHost.RepositoryConnectorHosting.ExtendedEffectiveUser, MFiles.ExternalConnectorHost.CallContext, MFiles.ExternalConnectorHost.RepositoryConnectorHosting.ConnectionContext)], IL:132, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [MFiles.ExternalConnectorHost.RepositoryConnectorHosting.AuthenticationHelperResult`1[TResult] ForUser[TResult](MFiles.ExternalConnectorHost.RepositoryConnectorHosting.ExtendedEffectiveUser, MFiles.ExternalConnectorHost.CallContext, System.String, MFiles.ExternalConnectorHost.RepositoryConnectorHosting.CacheableConnection, MFiles.ExternalConnectorHost.RepositoryConnectorHosting.RepositoryConnectorHost, System.Func`2[MFiles.Extensibility.ExternalRepositories.RepositorySessionInformation,TResult], MFiles.ExternalConnectorHost.RepositoryConnectorHosting.NullResult)], IL:559, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [MFiles.ExternalConnectorHost.RepositoryConnectorHosting.AuthenticationHelperResult`1[TResult] <ForUser>b__0(System.Nullable`1[MFiles.ExternalConnectorHost.RepositoryConnectorHosting.OnError], MFiles.ExternalConnectorHost.RepositoryConnectorHosting.AuthenticationSourceKind)], IL:409, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [MFiles.Extensibility.ExternalRepositories.IRepositorySession Open(MFiles.Extensibility.ExternalRepositories.RepositorySessionInformation)], IL:-1, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [Void PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)], IL:442, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)], IL:39, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args)], IL:22, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm)], IL:71, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:66, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:31, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx, IntPtr ctxID, Int32 appDomainID, System.Threading.InternalCrossContextDelegate ftnToCall, System.Object[] args)], IL:-1, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args)], IL:89, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:79, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:72, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:0, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: [System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, System.Object[] args, System.Object server, System.Object[]& outArgs)], IL:-1, Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: SharePointConnection.cs, 357 (IL:26), Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: SharePointConnection.cs, 472 (IL:404), Invalid pointer. (0x80004003)
Mfiles.SharePoint.Connector.Core: SharePointClientOnline.cs, 166 (IL:180), Invalid pointer. (0x80004003)
(M-Files <version> <timestamp>)

Solution

In the few instances that this has been seen, it has been an issue with the Location field for the SharePoint Online connector

In one instance, it was a trailing space at the end of the Location field such as below

"https://mySharePointsite.com/sites/siteFolder "

In the other, it was because of an additional quote at the end of the Location field such as

"https://mySharePointsite.com/sites/siteFolder'"

All the Invalid Pointer error message is saying is that there is some part of the configuration or configuration values that have been passed to it that it cannot process. 

The recommended course of action would be to double-check all values via the Advanced tab from the M-Files Admin and review the JSON and any values where fields have been input to verify, they are correct. It is then suggested to recreate the connection with the correct values.

Still need help?

On this page