Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Error while trying to access share point site from CRM

Posted on by 85

Dears,

Recently we are facing an issue in CRM where we are unable to open the documents from share point document location in CRM. So we went to share point and tried to validate the site but it is throwing the below error and validation is always showing as loading without any error.

pastedimage1584537440118v1.png

pastedimage1584537440118v2.png

we opened the crm application server and found the below error in the event viewer. Please don the needful.

4ccdfc66-92f8-e711-80d7-005056ac0707 
22d2846a-8d2e-4e39-a042-c29d5759bbe8 
sharepointdocument 
30 
ValidateUrl 
Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 
Microsoft.Crm.Extensibility.InternalOperationPlugin 
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.ComponentModel.Win32Exception: The configuration registry key is invalid at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister) at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName) at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName) at Microsoft.Crm.CrmPerformanceCounterFactory.DeletePerformanceCounterCategory(String CategoryName) at Microsoft.Crm.CrmPerformanceCounterFactory.RegisterCounters(String component, CounterCreationDataCollection singleInstanceCounters, CounterCreationDataCollection multiInstanceCounters) at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(CounterContainer counterContainer, PerformanceCounterLoadSetting settings, String component) at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(PerformanceCounterLoadSetting settings, String component) at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Initialize() at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Decrement(String perfCounterName) at Microsoft.Crm.ObjectModel.SharePointManagedApiWrapper.ValidateSharePointFolder(String[] folderUrls, String[] siteUrls) at Microsoft.Crm.ObjectModel.SharePointDataProcessor.ValidateSharePointFolder(String[] folderUrls, List`1 locationId, Int32 parentType, ExecutionContext context) at Microsoft.Crm.ObjectModel.SharePointDocumentService.ValidateUrl(String sharePointUrlsXml, ExecutionContext context)

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.ComponentModel.Win32Exception: The configuration registry key is invalid
at System.Diagnostics.PerformanceCounterLib.RegisterFiles(String arg0, Boolean unregister)
at System.Diagnostics.PerformanceCounterLib.UnregisterCategory(String categoryName)
at System.Diagnostics.PerformanceCounterCategory.Delete(String categoryName)
at Microsoft.Crm.CrmPerformanceCounterFactory.DeletePerformanceCounterCategory(String CategoryName)
at Microsoft.Crm.CrmPerformanceCounterFactory.RegisterCounters(String component, CounterCreationDataCollection singleInstanceCounters, CounterCreationDataCollection multiInstanceCounters)
at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(CounterContainer counterContainer, PerformanceCounterLoadSetting settings, String component)
at Microsoft.Crm.CrmPerformanceCounterFactory.LoadCounters(PerformanceCounterLoadSetting settings, String component)
at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Initialize()
at Microsoft.Crm.ObjectModel.SharePointPerformanceCounters.Decrement(String perfCounterName)
at Microsoft.Crm.ObjectModel.SharePointManagedApiWrapper.ValidateSharePointFolder(String[] folderUrls, String[] siteUrls)
at Microsoft.Crm.ObjectModel.SharePointDataProcessor.ValidateSharePointFolder(String[] folderUrls, List`1 locationId, Int32 parentType, ExecutionContext context)
at Microsoft.Crm.ObjectModel.SharePointDocumentService.ValidateUrl(String sharePointUrlsXml, ExecutionContext context)
.

  • Mahesh1431 Profile Picture
    Mahesh1431 85 on at
    RE: Error while trying to access share point site from CRM

    Thanks Alot Saurabh. Issue solved by exceuting the command specified by you

  • Suggested answer
    RE: Error while trying to access share point site from CRM

    Hello Mahesh,

    Thanks for reaching Dynamics community forum.

    Please ensure that the service account being used for CRM to SharePoint server-based integration has Membership in the local CRM server Performance Log Users group.

    Looking at the error logs, it appears that the CRM server performance counter registrations might have gone into the corrupted state.

    Performance counter sets provide groups of related counters that generate data about how various hardware or applications perform as they run in a Microsoft Dynamics CRM environment. For example, the Processor counter set includes counters that collect metrics showing how one or more microprocessors are performing on a particular server.The performance counter registration may fail if the performance counter registry is corrupted.

    1. Open a new Powershell Admin window.

    2. Execute the following command ::

       lodctr /R

    docs.microsoft.com/.../lodctr

    If this has never worked for you before, I would recommend following this article in order to Configure server-based authentication with Customer Engagement (on-premises) and SharePoint on-premises (Considering you have SharePoint on-premise) ::

    docs.microsoft.com/.../on-prem-server-based-sharepoint-on-prem

    Please mark this comment as answered if this helped with the mitigation of the issue.

  • Mahesh1431 Profile Picture
    Mahesh1431 85 on at
    RE: Error while trying to access share point site from CRM

    Hi,

    My versions in MS CRM 2016 on premise

  • Thijs van der Klei Profile Picture
    Thijs van der Klei 780 on at
    RE: Error while trying to access share point site from CRM

    Hi there,

    Do you use the web interface or the unified interface? If unified interface, please activate the webinterface via

    admin.powerplatform.microsoft.com/.../[org id]/settings/Behavior

    Deactivate the slider 'Use only Unified Interface'.

    Then try again to validate the SharePoint site.

    Kind regards,

    Thijs van der Klei

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans