web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Viewing Audit records UI fails with unhandled exception - CRM 2013

(0) ShareShare
ReportReport
Posted on by 230

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

I have the same question (0)
  • semosby Profile Picture
    230 on at
    RE: Viewing Audit records UI fails with unhandled exception - CRM 2013

    Only happens on a certain set of orders.  No known operations performed on the sql server.

  • gdas Profile Picture
    50,091 Moderator on at
    RE: Viewing Audit records UI fails with unhandled exception - CRM 2013

    Is this happening for all entity audit history or particular entity?

    Have you done any backend DB operation?

  • semosby Profile Picture
    230 on at
    RE: Viewing Audit records UI fails with unhandled exception - CRM 2013

    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.

  • Kokulan Profile Picture
    18,054 on at
    RE: Viewing Audit records UI fails with unhandled exception - CRM 2013

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans