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 :
Service | Customer Service, Contact Center, Fie...
Unanswered

Relationship Error

(0) ShareShare
ReportReport
Posted on by 15

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

I have the same question (0)
  • Community Member Profile Picture
    on at

    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:

    CRM 2011 - Query Builder Error (The specified field does not exist in Microsoft Dynamics CRM) - Http Error 404.15 - Not Found

    Query Builder Error: The attribute was not found in the MetadataCache | DynamicHands

    (+) Query Build Error: The specified field does not exist in Microsoft Dynamics 365 - Microsoft Dynamics CRM Forum Community Forum

    (+) 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.

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans