Microsoft Dynamics Crm an Error Has Occurred Try This Action Again

I came across a strange result inside Dynamics 365 that I'd never seen before this week. A customer had fabricated updates to the Condition Reason (statuscode) field on the Order entity and after the change was saved and published we could no longer open the field properties for the field from the customization area. Trying to open up the Status Reason gave the following mistake:

Error

An mistake has occurred.

Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support.

open-dynamics-365-field-properties-error-message

It seems that after the change was published, the Status Reason field was corrupted. To brand matters worse the Order form would no longer open either. Downloading the log file from the course error gave the following information:

Unhandled Exception: Arrangement.ServiceModel.FaultException1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=nine.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Spider web.HttpUnhandledException (0x80004005): Exception of blazon 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.at Microsoft.Crm.Awarding.InlineEdit.JsonWrapperFactory.CreateForStatusAttribute(StatusAttributeMetadata attributeMetadata, String entityLogicalName)at Microsoft.Crm.Awarding.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, Cord entityLogicalName)

<ErrorCode>-2147220970</ErrorCode>

<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />

<Message>Arrangement.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---&gt; System.NullReferenceException: Object reference not set to an case of an object. at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.CreateForStatusAttribute(StatusAttributeMetadata attributeMetadata, String entityLogicalName) at Microsoft.Crm.Application.InlineEdit.JsonWrapperFactory.Create(AttributeMetadata attributeMetadata, String entityLogicalName)  at Microsoft.Crm.Awarding.InlineEdit.JsonWrapperFactory.CreateEntityWrapper(Int32 entityTypeCode, String formId, ICollection 1 attributesOnForm, ICollection`1 unboundControlsOnForm)at Microsoft.Crm.Application.InlineEdit.ReadFormDataBuilder.RetrieveFormattedEntityMetadata() at Microsoft.Crm.Awarding.Pages.Common.ReadLayoutPage.WriteEntityMetadata(TextWriter writer) at Microsoft.Crm.Awarding.Pages.Common.ReadLayoutPage.Render(HtmlTextWriter author) at Arrangement.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) at Arrangement.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at Arrangement.Spider web.UI.Folio.HandleError(Exception e) at Organization.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Spider web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Folio.ProcessRequest() at System.Spider web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at Organisation.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at Organisation.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously): Microsoft Dynamics CRM has experienced an fault. Reference number for administrators or support: #F865F716</Message>

The following information from the error stood out to me and confirmed that it was something to do with the condition:

CreateForStatusAttribute(StatusAttributeMetadata attributeMetadata, String entityLogicalName)

How to gear up it

Since at that place was no chance of opening the Status Reason field from the customization area to set up it, the only option was to export the metadata and set things via XML.

Examining the XML everything seemed Ok and the defaults for each status where legit values within the condition reason and I could spot cypher wrong with the status reason options.

To set up it I exported the aforementioned fields from an unmodified version for Dynamics 365 and replaced the <optionset> attributes for both the Status and Status Reason fields in my file.

The steps below outline the process I took to resolved it:

  1. Add the Status and Status reason fields for the problematic entity into a Solution and export it.
  2. Unzip the file and open Customizations.xml inside a text / XML editor
  3. Do the same process from an unmodified Dynamics 365 system.Note: I signed up for a trial version and did it from there.
  4. Replace the <optionset> aspect for the salesorder_statecode field with the values from the unmodified system
  5. Supplant the <optionset> attribute for thesalesorder_statuscode field with the values from the unmodified organization
  6. Zero the modified customizations.xml and all other associated files
  7. Import and publish the new zilch file

In one case the changes take been published, refresh your browser enshroud and retry opening the form and the Status Reason field. In one case confirmed everything is working again, retry the customizations.

FYI: Here are the values I used to supercede the <optionset> attributes on the Social club (salesorder) entity

salesorder_statecode:

salesorder_statuscode:

Good luck and feel complimentary to comment if y'all have any problems.

Contempo Posts

easleysuar1955.blogspot.com

Source: https://functionalthoughts.com/dynamics-365-an-error-has-occurred-opening-field-properties/

0 Response to "Microsoft Dynamics Crm an Error Has Occurred Try This Action Again"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel