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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Audit Log Partition Delete Failed - Error on Event Viewer

(0) ShareShare
ReportReport
Posted on by 50

Hi,

Im trying to delete old partitions but the system is not allowing me. I checked partition list and I found out that the last partition could not be created. (using CRM Job editor)

This is a CRM 2013 instance On premise.

The error is the following

Failed to drop Partition on AuditBase. Exception message ALTER TABLE SWITCH statement failed. There is no identical index in source table 'XXXXX_mscrm.dbo.AuditBase' for the index 'ndx_PrimaryKey_NonPartitionAuditTable' in target table 'XXXXX_mscrm.dbo.NonPartitionAuditTable' .

* XXXX is my Organization.

The thing is that I tried all solutions around, OLEDBTimeout... and more.

I think that the metadata on the indexes is corrupted, because I compare the indexes with another server and they are ok. A rebuild over the clustered index should recreate the metadata of every clustered and non clustered index, right? Any other ideas?

The Audit log is too big now, I don't know how to force creating a new partition nor fix this problem.

*This post is locked for comments

I have the same question (0)
  • Pablo J. Cosimo Profile Picture
    50 on at

    Found the problem!, index duplicated!

  • Extreme Engineers Network Profile Picture
    395 on at

    Hi,

    Could you detail what was the problem and how can we troubleshoot,

  • Pablo J. Cosimo Profile Picture
    50 on at

    Hi. The problem begins with an update that created another index to this table. Just drop the duplicated indexes. U can check looking for index list on a clean installation before dropping them.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans