Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

Update database Error Code: 1505 - SL 2011 FP1 to SL 2015

Posted on by Microsoft Employee

Greetings, I receive the following error in DBBuild.log when updating the database from SL 2011 FP1 to SL 2015. Is there any way to resolve the duplicate key issue?

Start Time: 4:11:08 PM

 

Database Name: [SYSTEM DATABASE NAME HERE]

Error Code: 1505

Error Text: The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.RptFormat' and the index name 'RptFormat0'. The duplicate key value is (04600, Standard                     ).

Could not create constraint. See previous errors.

The statement has been terminated.

Statement: SET QUOTED_IDENTIFIER OFF

GO

SET ANSI_NULL_DFLT_OFF ON

GO

 

 

 

exec ut_build_indexes '%'

 

 

End Time: 4:28:44 PM

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Update database Error Code: 1505 - SL 2011 FP1 to SL 2015

    I went back and used Database Maintenance and ran the Synchronize Selected Application database Ownership & Security for my databases. After that completed successfully, I was able to run the Update from 2011 to 2015 Update Scenario.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans