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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

System.ArgumentNullException: Value cannot be null. Parameter name: entityName Error while opening CRM Case Form

(0) ShareShare
ReportReport
Posted on by 100

Hi,

On case entity we created a Lookup of customer data type. This is working fine in Development environment. But when we move it to QA, we are getting "Invalid Argument"
error when we open any existing case record. Also we get the same error while we add the newly created column in advance find.Below are the screen shots.
Any help is appreciated.

8080.Error1.PNG6253.Error2.PNG8688.Error3.PNG

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Click "Download Log File" button, download the log and put it here.

  • Sri Kanth Profile Picture
    100 on at

    Hi,

    Thanks for the response. Below is the error.

    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.CrmArgumentNullException: entityName ---> System.ArgumentNullException: Value cannot be null.

    Parameter name: entityName

      --- End of inner exception stack trace ---

      at Microsoft.Crm.Metadata.ServerDynamicMetadataCache.TryGetEntity(String entityName, NameMappingType mapping)

      at Microsoft.Crm.Application.Platform.Grid.PropertyFactory.ProcessEntityReference(Object rawValue, AttributeMetadata attributeMetadata, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.AppendDataValueJson(StringBuilder dataValues, String attributeLogicalName, Entity entity, FormMediator formMediator, Boolean encodeValues, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.GetEntityAttributeJsonContent(Entity entity, FormMediator formMediator, Boolean encodeValues, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.<EntityPropertiesToJsonInternal>d__19.MoveNext()

      at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()

      at Microsoft.Crm.Application.InlineEdit.InlineEditExtensionMethods.WriteSeparatedValues(TextWriter writer, IEnumerable`1 values, Char separator)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WriteEntityProperties(TextWriter writer, Entity entity, FormMediator formMediator, NotificationCollection notifications, PrivilegeCheck privilegeChecks, Boolean appendEntriesForFirstTimeLoad, Dictionary`2 parameters, Boolean encodeValues)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      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: #EAB2239FDetail:

    <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">

     <ActivityId>e666ffbe-0fd1-433a-ba3b-da74da37f1d5</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. ---> Microsoft.Crm.CrmArgumentNullException: entityName ---> System.ArgumentNullException: Value cannot be null.

    Parameter name: entityName

      --- End of inner exception stack trace ---

      at Microsoft.Crm.Metadata.ServerDynamicMetadataCache.TryGetEntity(String entityName, NameMappingType mapping)

      at Microsoft.Crm.Application.Platform.Grid.PropertyFactory.ProcessEntityReference(Object rawValue, AttributeMetadata attributeMetadata, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.AppendDataValueJson(StringBuilder dataValues, String attributeLogicalName, Entity entity, FormMediator formMediator, Boolean encodeValues, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.GetEntityAttributeJsonContent(Entity entity, FormMediator formMediator, Boolean encodeValues, IOrganizationContext context)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.<EntityPropertiesToJsonInternal>d__19.MoveNext()

      at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()

      at Microsoft.Crm.Application.InlineEdit.InlineEditExtensionMethods.WriteSeparatedValues(TextWriter writer, IEnumerable`1 values, Char separator)

      at Microsoft.Crm.Application.InlineEdit.InlineEditJsonConverter.WriteEntityProperties(TextWriter writer, Entity entity, FormMediator formMediator, NotificationCollection notifications, PrivilegeCheck privilegeChecks, Boolean appendEntriesForFirstTimeLoad, Dictionary`2 parameters, Boolean encodeValues)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormDataJson(TextWriter writer)

      at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.WriteFormattedEntityData(TextWriter writer, Boolean isTurboForm)

      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: #EAB2239F</Message>

     <Timestamp>2019-12-13T18:06:48.3691443Z</Timestamp>

     <ExceptionRetriable>false</ExceptionRetriable>

     <ExceptionSource i:nil="true" />

     <InnerFault>

       <ActivityId>e666ffbe-0fd1-433a-ba3b-da74da37f1d5</ActivityId>

       <ErrorCode>-2147220989</ErrorCode>

       <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />

       <HelpLink i:nil="true" />

       <Message>entityName</Message>

       <Timestamp>2019-12-13T18:06:48.3691443Z</Timestamp>

       <ExceptionRetriable>false</ExceptionRetriable>

       <ExceptionSource i:nil="true" />

       <InnerFault>

         <ActivityId>e666ffbe-0fd1-433a-ba3b-da74da37f1d5</ActivityId>

         <ErrorCode>-2147220970</ErrorCode>

         <ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />

         <HelpLink i:nil="true" />

         <Message>System.ArgumentNullException: Value cannot be null.

    Parameter name: entityName</Message>

         <Timestamp>2019-12-13T18:06:48.3691443Z</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" />

     </InnerFault>

     <OriginalException i:nil="true" />

     <TraceText i:nil="true" />

    </OrganizationServiceFault>

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Unfortunately this issue doesn't give an answer what's wrong. I would recommend to get in touch with Microsoft and open a ticket.

  • Sri Kanth Profile Picture
    100 on at

    HI Andrew,

    Thanks again for prompt response. You mean to say it is a bug at product/microsoft end?

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    It looks like a very exotic bug because I found only 2 similar threads in the Internet.

  • Sri Kanth Profile Picture
    100 on at

    Ok Andreq. I will log a MS Ticket. Thanks for the response.

  • Andrii_V Profile Picture
    10 on at

    I've faced with the same error on 365 on-Premise version. Everything works fine on Dev environment but on QA - failed.

    It happen on ordinary relation 1:N between parent and child record. I didn't fond root cause of problem but definitely mapping of 1:N relation is playing role in error occurrence. Recreating mapping on 1:N relation fix it for me.

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi Sri,

    Please refer below url for more info:

    pravinpawarweb.wordpress.com/.../

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans