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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Error when Creating User from CRM User Interface

(0) ShareShare
ReportReport
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>

I have the same question (0)
  • Suggested answer
    David Yu Profile Picture
    Microsoft Employee on at

    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

  • CRMDevPL Profile Picture
    40 on at

    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
    CRMDevPL Profile Picture
    40 on at

    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.

  • David Yu Profile Picture
    Microsoft Employee on at

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 156

#2
ManoVerse Profile Picture

ManoVerse 153 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans