CRM 2011 incident to annotations one to many relations gives me this error:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/8/2021 6:26:15 PM
Event time (UTC): 2/8/2021 4:26:15 PM
Event ID: 54a60c47101848b4804943c39afb7466
Event sequence: 1406
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT-1-132572007147078354
Trust level: Full
Application Virtual Path: /
Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\
Machine name: NTRA-CRM1
Process information:
Process ID: 8048
Process name: w3wp.exe
Account name: TRA\ntracc
Exception information:
Exception type: InvalidOperationException
Exception message: Failed to compare two elements in the array.
at System.Array.SorterObjectArray.IntrospectiveSort(Int32 left, Int32 length)
at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
at System.Array.Sort(Array array, IComparer comparer)
at Microsoft.Crm.Application.Controls.SystemCustomization.SysCustomizationGridDataProvider.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.ntra_tools_systemcustomization_relationships_relationshiplist_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Object reference not set to an instance of an object.
at Microsoft.Crm.Application.Controls.SystemCustomization.SysCustomizationGridDataProvider.RowComparer.Compare(Object obj1, Object obj2)
at System.Array.SorterObjectArray.SwapIfGreaterWithItems(Int32 a, Int32 b)
at System.Array.SorterObjectArray.PickPivotAndPartition(Int32 lo, Int32 hi)
at System.Array.SorterObjectArray.IntroSort(Int32 lo, Int32 hi, Int32 depthLimit)
at System.Array.SorterObjectArray.IntrospectiveSort(Int32 left, Int32 length)
Request information:
Request URL: crm/.../relationshipList.aspx
Request path: /NTRA/tools/systemcustomization/Relationships/relationshipList.aspx
User host address: 10.160.210.15
User: TRA\ntracc
Is authenticated: True
Authentication Type: Negotiate
Thread account name: TRA\ntracc
Thread information:
Thread ID: 155
Thread account name: TRA\ntracc
Is impersonating: False
Stack trace: at System.Array.SorterObjectArray.IntrospectiveSort(Int32 left, Int32 length)
at System.Array.Sort(Array keys, Array items, Int32 index, Int32 length, IComparer comparer)
at System.Array.Sort(Array array, IComparer comparer)
at Microsoft.Crm.Application.Controls.SystemCustomization.SysCustomizationGridDataProvider.LoadData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareGridData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderBase.PrepareData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.ntra_tools_systemcustomization_relationships_relationshiplist_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
Also after Migration, to dynamics 365 I can't access the relationships gives me " Query builder error", The specified record type doesn't exist in Microsoft dynamics CRM
Hi Menna,
The error appeared after migration? Maybe you can try to migrate again.
And you can check that you removed the relationship from Dynamics 365 or not, but the solution still has a reference to the deleted field. The solution has an orphan Solution Component pointing to nothing.
Also, I found some similar thread with your error, you can refer them:
Query Builder Error: The attribute was not found in the MetadataCache | DynamicHands
(+) Query Builder Error in MSDYN365 - Microsoft Dynamics CRM Community
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27