Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

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

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,198 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,647 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans