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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Error assigning role to user

(1) ShareShare
ReportReport
Posted on by

Hello all.

I am trying to assign a user some role in my Dynamics 365 for Sales (CRM) and I get the error:

4380.error.PNG


Error log:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: OrganizationServiceFault System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.FOCommon.Plugins.Services.DualWriteSecurityRoleAssociateService.PreAssociate(LocalPluginContext localcontext)
at Microsoft.Dynamics.FOCommon.Plugins.PluginBase.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Dialogs.RoleDialogPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #0E9723BBDetail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>a541dbbb-2aaf-4f56-89cf-bf54bdf51ea4</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; Microsoft.Crm.CrmException: OrganizationServiceFault System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.FOCommon.Plugins.Services.DualWriteSecurityRoleAssociateService.PreAssociate(LocalPluginContext localcontext)
at Microsoft.Dynamics.FOCommon.Plugins.PluginBase.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Dialogs.RoleDialogPage.ConfigureForm()
at Microsoft.Crm.Application.Controls.AppUIPage.OnPreRender(EventArgs e)
at Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #0E9723BB</Message>
<Timestamp>2020-09-22T11:26:27.3634109Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>a541dbbb-2aaf-4f56-89cf-bf54bdf51ea4</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<HelpLink i:nil="true" />
<Message>OrganizationServiceFault System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.FOCommon.Plugins.Services.DualWriteSecurityRoleAssociateService.PreAssociate(LocalPluginContext localcontext)
at Microsoft.Dynamics.FOCommon.Plugins.PluginBase.Execute(IServiceProvider serviceProvider)</Message>
<Timestamp>2020-09-22T11:26:27.3634109Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Dynamics.FOCommon.Plugins: Microsoft.Dynamics.FOCommon.Plugins.DualWriteSecurityRoleAssociate]
[cd9cdb58-9c5b-e911-a955-000d3a1d5d5a: Microsoft.Dynamics.FOCommon.Plugins.DualWriteSecurityRoleAssociate: Associate of any Entity]


</TraceText>
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

Please, tell me how to fix this error

I have the same question (0)
  • onurizgi Profile Picture
    360 on at
    RE: Error assigning role to user

    Hi,

    Did you register any plugin or custom workflow ?

    Can you try deactivate business process associated user

  • Verified answer
    Ricardo Gimenez Profile Picture
    on at
    RE: Error assigning role to user

    Hello,

    This issue usually is caused by the Finance and Operations solution being out-of-date. The plugin causing this issue no longer exists in the latest solution update.

    Please, try to use this workaround:

      • As an admin navigate to Settings > Customizations > Customize the System
      • In the left navigation panel, click on the “ Sdk Message Processing Steps” section
      • Search for the “Microsoft.Dynamics.FOCommon.Plugins.Services.DualWriteSecurityRoleAssociate: Associate of any entity” plugin
      • Select the plugin
      • Click “Deactivate” to deactivate the plugin
      • Save your changes and on top of this window click on Publish all customizations

    Also, the solution Dynamics365FinanceAndOperationsCommon can be uninstalled as permanent fix. 

    Thanks,

     

  • Community Member Profile Picture
    on at
    RE: Error assigning role to user

    Thanks, it helped me.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 136 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 96

#3
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans