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 AX (Archived)

Duplicate index error when upgrading AX 2012 R2 CU 6 to R3 CU 12

(0) ShareShare
ReportReport
Posted on by 277

Hi,

I am upgrading an AX 2012 R2 CU 6 to AX 2012 R3 CU 12.

I have created a Test environment that is kind of a simple copy of production and insured that I could compile and Syncronize with no errors. Then I deleted all R2 components, upgraded the database and installed AOS, Client, Debugger and Management Utility as described in the documentation.

Hereafter I run a full kernel compilation with axbuild xppcompileall. This results in 201 Errors and 233 Warnings, which I guess is ok because this I expect to be solved during the code merge later.

Now the documentation suggest that I create a development environment to do the code upgrade, but I rather just continue in this Test environment. I open the client and start with a syncronization of the database which results in:

SQL-fejlbeskrivelse: [Microsoft][SQL Server Native Client 11.0][SQL Server]The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.LEDGERPERIODMODULEACCESSCONTROL' and the index name 'I_7375LEDGERFISCALCALENDARPERIODIDX'. The duplicate key value is (5637144576, 5637144576).
SQL-sætning: CREATE UNIQUE  INDEX I_7375LEDGERFISCALCALENDARPERIODIDX ON "DBO".LEDGERPERIODMODULEACCESSCONTROL (PARTITION,LEDGERFISCALCALENDARPERIOD)

If I look in the table LEDGERPERIODMODULEACCESSCONTROL I can see that a new index LEDGERFISCALCALENDARPERIODIDX has been created and with allow dublicates to No. There are a lot of dublicates in this field in the data. How do I proceed?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Hi Brian Refshauge,

    It should be solved by data upgrade scripts, please refer to thread discussing same issues community.dynamics.com/.../225371 where author skip it and got same error.  

  • khadar shaik Profile Picture
    55 on at

    Hi ievgen Miroshnikov,

    I am also facing the same issue. can u please elaborate how to solve the issue.

  • Mea_ Profile Picture
    60,284 on at

    There is upgrade checklist with different tasks like pre sync and sync, you probably skip one that should disable that index, to fix it go  through checklist.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans