Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Error when Creating User from CRM User Interface

Posted on by 40

After upgrade from 8.2.1.176 to 9.0.8.9 on-premise. Sys Admin User tries to create a new user by navigating to  Security > Users > New button. This action throws an exception (see complete exception below).   This org has been migrated into multiple DEV/STAGE environments with no problem.  This error only happens in PROD.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Requested value 'null' was not found.
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at Microsoft.Crm.ObjectModel.DefaultEmailSettings.InitializeDefaultEmailSettings(Guid defaultEmailServerProfileId, String defaultEmailSettings, ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.ObjectModel.DefaultEmailSettings..ctor(ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.ObjectModel.DefaultEmailSettingsFactory.GetDefaultEmailSettings(Nullable`1 regardingObjectTypeCode, ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.Application.Components.PageHandlers.EmailUtility.GetDefaultEmailSettings(Int32 entityTypeCode)
at Microsoft.Crm.Application.Components.EntityPageHeaders.SystemUserConfigHeader.SetDefaultEmailSettings(PageResourceManager header)
at Microsoft.Crm.Application.Components.EntityPageHeaders.SystemUserConfigHeader.UpdateConfigHeaderForEntityRecord(PageResourceManager header, Entity entity)
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
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: #38832BB9Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>fba1a86f-6991-4e92-b55a-0b8efefbafbd</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; System.ArgumentException: Requested value 'null' was not found.
at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult&amp; parseResult)
at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)
at Microsoft.Crm.ObjectModel.DefaultEmailSettings.InitializeDefaultEmailSettings(Guid defaultEmailServerProfileId, String defaultEmailSettings, ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.ObjectModel.DefaultEmailSettings..ctor(ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.ObjectModel.DefaultEmailSettingsFactory.GetDefaultEmailSettings(Nullable`1 regardingObjectTypeCode, ExecutionContext context, Boolean isProvisioning)
at Microsoft.Crm.Application.Components.PageHandlers.EmailUtility.GetDefaultEmailSettings(Int32 entityTypeCode)
at Microsoft.Crm.Application.Components.EntityPageHeaders.SystemUserConfigHeader.SetDefaultEmailSettings(PageResourceManager header)
at Microsoft.Crm.Application.Components.EntityPageHeaders.SystemUserConfigHeader.UpdateConfigHeaderForEntityRecord(PageResourceManager header, Entity entity)
at Microsoft.Crm.Application.Pages.Form.FormDataPage.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
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: #38832BB9</Message>
<Timestamp>2020-02-25T18:59:48.3497987Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>fba1a86f-6991-4e92-b55a-0b8efefbafbd</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>System.ArgumentException: Requested value 'null' was not found.</Message>
<Timestamp>2020-02-25T18:59:48.3497987Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

  • David Yu Profile Picture
    David Yu on at
    RE: Error when Creating User from CRM User Interface

    That's a great news. If updating the xml helps, please mark my previous answer as verified. Thanks!

  • Suggested answer
    CRMDevPL Profile Picture
    CRMDevPL 40 on at
    RE: Error when Creating User from CRM User Interface

    I compared settings in organization table and found that the DefaultEmailSettings xml had null values which caused both the error when opening system settings and the error when creating a new user.

  • CRMDevPL Profile Picture
    CRMDevPL 40 on at
    RE: Error when Creating User from CRM User Interface

    Great suggestion! As a user in Application Administrator role, When I try to open System Settings I get this error:

    Request information:
    Request URL: yadayadayada.com/.../systemsettings/dialogs/systemsettings.aspx?dType=1
    Request path: /orgname/tools/systemsettings/dialogs/systemsettings.aspx

    Exception information:
    Exception type: FormatException
    Exception message: Input string was not in a correct format.
    at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
    at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
    at Microsoft.Crm.Web.Tools.SystemSettings.SystemSettingsPage.ConfigureDefaultEmailSettings()
    at Microsoft.Crm.Web.Tools.SystemSettings.SystemSettingsPage.ConfigureEmailControls(EntityMetadata organizationMetadata)
    at Microsoft.Crm.Web.Tools.SystemSettings.SystemSettingsPage.ConfigurePage()
    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)

    FYI: Clicked Actions by mistake

  • Suggested answer
    David Yu Profile Picture
    David Yu on at
    RE: Error when Creating User from CRM User Interface

    Hi,

    According to the trace, it seems there are some issue when Initialize Default Email Settings for the new user.

    Can you please check whether we have configured the default email setting in System settings?

    pastedimage1582708845205v1.png

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans