Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Viewing Audit records UI fails with unhandled exception - CRM 2013

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

  • semosby Profile Picture
    semosby 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
    gdas 50,085 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
    semosby 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
    Kokulan 18,048 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans