When users attempt to read the audit records of a given order in the user interface an unhandled exception error is thrown. Here is a partial of the dump of the system event. Any insight is appreciated.
Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 5/9/2019 1:37:48 PM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
User: N/A
Computer: CRM02.com
Description:
Event code: 3005 Event message: An unhandled exception has occurred. Event time: 5/9/2019 1:37:48 PM Event time (UTC): 5/9/2019 5:37:48 PM Event ID: fc0a4ce53f1e4961a7e4f56ed47dedba Event sequence: 710862 Event occurrence: 338 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT-1-132017991328976072 Trust level: Full Application Virtual Path: / Application Path: C:\Program Files\Microsoft Dynamics CRM\CRMWeb\ Machine name: CRM02 Process information: Process ID: 13400 Process name: w3wp.exe Account name: CRMService Exception information: Exception type: ArgumentException Exception message: An entry with the same key already exists.
at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
at Microsoft.Crm.Application.Platform.AuditAppHelper.GetSortedAttributesList(Int32 entityObjectTypeCode, String attributeMask, Dictionary`2 deletedAttributes, IOrganizationContext context)
at Microsoft.Crm.Application.Controls.Grid.UI.PropertyTemplateAuditAttributeMaskColumn.BindData(WebControl parentControl, IRowDataSource rowData)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()Request information: Request URL: xxxx.xxxx.xxxx.com/.../areas.aspx;inlineEdit=1&navItemName=Audit History&oId={A14C67FD-8072-E911-8167-0050568BD755}&oType=1088&pagemode=iframe&rof=true&security=852023&tabSet=areaAudit&theme=Outlook15White Request path: /Orgname/userdefined/areas.aspx User host address: 192.168.1.103 User: bonnie Is authenticated: True Authentication Type: Negotiate Thread account name: CRMService Thread information: Thread ID: 21 Thread account name: CRMService Is impersonating: False Stack trace: at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
at Microsoft.Crm.Application.Platform.AuditAppHelper.GetSortedAttributesList(Int32 entityObjectTypeCode, String attributeMask, Dictionary`2 deletedAttributes, IOrganizationContext context)
at Microsoft.Crm.Application.Controls.Grid.UI.PropertyTemplateAuditAttributeMaskColumn.BindData(WebControl parentControl, IRowDataSource rowData)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)msg me for complete dump.
*This post is locked for comments