Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Unhandled Exception while publishing the solution

Posted on by 5,227

While publishing any component in solution, it gives me error as shown in below:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.OutputComponents(XmlWriter treeXmlWriter, String solutionId)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.GetSolutionComponentsXml(String solutionId)
at Microsoft.Crm.Core.Application.WebServices.SolutionWebService.RefreshNavigationTree(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8A4A2E3BDetail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>06e52ca6-bcc3-44fd-b766-6876995a51dc</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)
at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.OutputComponents(XmlWriter treeXmlWriter, String solutionId)
at Microsoft.Crm.Application.Controls.SystemCustomization.SolutionComponentsGridDataProvider.GetSolutionComponentsXml(String solutionId)
at Microsoft.Crm.Core.Application.WebServices.SolutionWebService.RefreshNavigationTree(): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #8A4A2E3B</Message>
<Timestamp>2018-01-23T05:56:48.5101152Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Can anyone please help me to resolve this issue ?

*This post is locked for comments

  • Pawar Pravin  Profile Picture
    Pawar Pravin 5,227 on at
    RE: Unhandled Exception while publishing the solution

    Radu, Thanks for pointing me further in the right direction. Let me try with this solution.

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Unhandled Exception while publishing the solution

    Hi Pravin,

    From the call stack it looks to be somehow related to a security role / privillege : "at Microsoft.Crm.Security.User.GetPrivilegeInternal(Int32 objectType, PrivilegeId privilegeId, IOrganizationContext context)

    "

    Do you have any custom security roles within your solutions? If yes, to narrow down maybe you can try to remove/delete them from the solution and then try to publish again and see if that 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

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