web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Server-Based SharePoint Integration "Validation Invalid"

(1) ShareShare
ReportReport
Posted on by

Hi, 

I am trying to configure the server-based authentication between CRM2016 On Premise and SharePoint 2016 On Premise.  

I've run all the commands in this technet article: https://technet.microsoft.com/en-us/library/dn949332.aspx 

Unfortunately i always getting a Invalid SharePoint absolute URL.

And this is the error msg i have in my CRM server events viewer : 

The Web Service plug-in failed in OrganizationId: 7c45934a-e269-42e3-be98-af9c367af9cc; SdkMessageProcessingStepId: e0bdf6d6-0b83-4aba-838f-f7b4a31afd72; EntityName: sharepointdocument; Stage: 30; MessageName: ValidateSharePointSite; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.Xml.XmlException: An error occurred while parsing EntityName. Line 7, position 171.
at System.Xml.XmlTextReaderImpl.Throw(String res, Int32 lineNo, Int32 linePos)
at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
at System.Xml.XmlTextReaderImpl.FinishPartialValue()
at System.Xml.XmlTextReaderImpl.get_Value()
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
at Microsoft.Crm.ObjectModel.SharePointProxyBase.ValidateSharePointSite(String[] siteUrls, String& validationLog)
at Microsoft.Crm.ObjectModel.SharePointProxyService.ValidateSharePointSite(String[] siteUrls, ExecutionContext context, String& validationLog)
.

I don't know what to do to fixe this.  

*This post is locked for comments

I have the same question (0)
  • Jari L. Profile Picture
    5 on at

    Hi,

    We get the same error when trying to link on premises sharepoint 2013 with on premises CRM 2016.

    The Web Service plug-in failed in OrganizationId: 521f0ebd-3e4a-4552-8252-79d5b04f9f5c; SdkMessageProcessingStepId: e0bdf6d6-0b83-4aba-838f-f7b4a31afd72; EntityName: sharepointdocument; Stage: 30; MessageName: ValidateSharePointSite; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

      at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)

      at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)

      at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

      at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)

      at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)

      at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)

      at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)

    Inner Exception: System.Xml.XmlException: An error occurred while parsing EntityName. Line 7, position 171.

      at System.Xml.XmlTextReaderImpl.Throw(Exception e)

      at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)

      at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)

      at System.Xml.XmlTextReaderImpl.FinishPartialValue()

      at System.Xml.XmlTextReaderImpl.get_Value()

      at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)

      at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)

      at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)

      at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)

      at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)

      at Microsoft.Crm.ObjectModel.SharePointProxyBase.ValidateSharePointSite(String[] siteUrls, String& validationLog)

    .

  • Suggested answer
    Alagunellaikumar Profile Picture
    6,212 on at

    Hi All

    Please make sure time between your CRM onpremise and Sharepoint onpremise must be same

    @Jari L.

    May i know updates of Sharepoint 2013?

  • Community Member Profile Picture
    on at

    Hi,

    Have you found a solution for that problem?
    I still have this problem in my CRM. The two servers (Sharepoint and CRM) have the same date/time and I used the same guide you used.
    Does anybody have a solution?

    Best regards.

  • Community Member Profile Picture
    on at

    Hi,

    No i did not find a solution for that problem.

    And i try to do everything from scratch again and I still having the same error.

    Frantz

  • Community Member Profile Picture
    on at

    Hi,

    did you find a solution?

    We have the same problem, can figure out the problem.

    The Web Service plug-in failed in OrganizationId: abcd662e-b2ba-e511-80bd-c6622de56d57; SdkMessageProcessingStepId: e0bdf6d6-0b83-4aba-838f-f7b4a31afd72; EntityName: sharepointdocument; Stage: 30; MessageName: ValidateSharePointSite; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
    at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
    at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
    at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
    at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
    at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
    Inner Exception: System.Xml.XmlException: An error occurred while parsing EntityName. Line 7, position 171.
    at System.Xml.XmlTextReaderImpl.Throw(String res, Int32 lineNo, Int32 linePos)
    at System.Xml.XmlTextReaderImpl.HandleEntityReference(Boolean isInAttributeValue, EntityExpandType expandType, Int32& charRefEndPos)
    at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
    at System.Xml.XmlTextReaderImpl.FinishPartialValue()
    at System.Xml.XmlTextReaderImpl.get_Value()
    at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
    at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
    at System.Xml.Linq.XElement.ReadElementFrom(XmlReader r, LoadOptions o)
    at System.Xml.Linq.XElement.Load(XmlReader reader, LoadOptions options)
    at System.Xml.Linq.XElement.Parse(String text, LoadOptions options)
    at Microsoft.Crm.ObjectModel.SharePointProxyBase.ValidateSharePointSite(String[] siteUrls, String& validationLog)
    at Microsoft.Crm.ObjectModel.SharePointProxyService.ValidateSharePointSite(String[] siteUrls, ExecutionContext context, String& validationLog)

    Thank you

  • Community Member Profile Picture
    on at

    Hi Frantz

    You might want to consider a 3rd party CTI connector for that. One that I know of is Tenfold, they can integrate MS Dynamics. With their integration service you get features such as click to dial, call pop up, advanced analytics and a few more. You can check them out on the link below.

    www.tenfold.com/.../dynamics

  • Community Member Profile Picture
    on at

    I Solved By changing the user that runs the pool of CRM applications site. First it was Network Service.

  • Community Member Profile Picture
    on at

    Hi Laura, did you change the Identity to a Service Account ?

    Now on my CRM the Identity that's running the AppPool is a service account ie: domain\CRMSvc.

    Did you give this user access to the SharePoint Sites ?

    Best regards.

    Frantz

  • Joe Woltering Profile Picture
    12,163 on at

    Any update on this? Hitting the same bug.

  • Joe Woltering Profile Picture
    12,163 on at

    ***UPDATE***: Disregard; I found this note on the TechNet page for configuring Server-Side Auth:

    1. If you get errors in the event log saying:

    "An error occurred while parsing EntityName. Line 7, position 171."

    It is due to the service account of the application not having access to the private key. After running the Powershell script, you need to manually add read access to the file created here by the script:

    C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys

    I was unable to find a way of determining which file I simply looked at the modifed timestamp and saw which one had the time for when I ran the config script.

    technet.microsoft.com/.../dn949332.aspx

    I assume that means the Service Pool Account for the App Management Service on SP. I just gave Everyone - Read to the certs that were created (which I am sure is not best practice, but it works.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans