Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Getting error message when attempting to delete the current audit log.

(0) ShareShare
ReportReport
Posted on by 10

I want to clear out the current audit log and I am receiving an error message when I attempt to delete the log in Audit Log Management page.

Message: System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: You cannot delete audit data in the partitions that are currently in use, or delete the partitions that are created for storing future audit data.


  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Getting error message when attempting to delete the current audit log.

    Hi,

    As Mehdi El Amri said, this is normal behavior, and the official document has a very clear statement:

    https://docs.microsoft.com/en-us/powerapps/developer/data-platform/retrieve-and-delete-the-history-of-audited-data-changes#delete-the-change-history-for-a-date-range

    pastedimage1626773736208v1.jpeg

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Frank Gong

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Getting error message when attempting to delete the current audit log.

    Hi,

    This is the normal behavior of the CRM. You can't change it. You cannot delete the current audit partition until the end date.

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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans