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: ApplicationSource: ASP.NET 4.0.30319.0Date: 5/9/2019 1:37:48 PMEvent ID: 1309Task Category: Web EventLevel: WarningKeywords: ClassicUser: N/AComputer: CRM02.comDescription: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.
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: ApplicationSource: ASP.NET 4.0.30319.0Date: 5/9/2019 1:37:48 PMEvent ID: 1309Task Category: Web EventLevel: WarningKeywords: ClassicUser: N/AComputer: CRM02.comDescription: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
Only happens on a certain set of orders. No known operations performed on the sql server.
Is this happening for all entity audit history or particular entity?
Have you done any backend DB operation?
Thanks. This did not solve the issue.
Tried restarting and resetting immediately. The error is happening on system admins. Cleared cache and tried different browsers with the same result.
Hi
I think this error message could well be displayed due to a temporary issue possibly due to invalid caching and I would try the following first
01. Restart all the CRM Services
02. Perform an IIS Reset
03. Try and view the audit history from a different browser session and if possible with different user account as well (a user with sys admin would help to rule out any permission issues)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
Aric Levin - MVP 2 Moderator
ED-30091530-0 1