Error : A duplicate content type name was found


I was trying to upgrade a database from SP2013 to SP2016 via database attach method, I received an error & the upgrade failed. when I checked the upgrade logs I found following error

 

11/03/2017 14:41:14.31  powershell (0x19EC)       0x03EC  SharePoint Foundation Upgrade                SPContentDatabaseSequence    a5u5l     ERROR  Please upgrade sites using SharePoint 2010 experience in database WSS_Content_SPIN2013 to SharePoint 2013 before proceeding.                ff47299e-3cac-d0a6-189a-7b63171d484c

 

 11/03/2017 14:41:15.00 powershell (0x19EC)       0x03EC  SharePoint Foundation Upgrade              SPUpgradeSession                an59t    ERROR  Exception: Content database data integrity check has encountered a severe issue that upgrade process must be stopped. See the upgrade log for more information about how to resolve this issue.      ff47299e-3cac-d0a6-189a-7b63171d484c

 

When I checked in my SP2013 farm, I found that the particular site mentioned in the error was not upgraded to SP2013 look & feel. This site was migrated from SP2010 to SP2013. Hence I tried to upgrade the site using the following PowerShell command

 

Upgrade-SPSite <SiteURL> -VersionUpgrade

 

I got following error which says that upgrade failed because duplicate content type ‘holiday’ was found.

 

11/06/2017 07:47:39.57 OWSTIMER (0x4F2C) 0x7068 SharePoint Foundation Upgrade SiteSequence ajywk ERROR Action 15.0.2.0 of Microsoft.Office.Server.Search.Upgrade.SiteSequence failed. 95272a9e-feea-40d6-58a3-6545b6d2ca2a

11/06/2017 07:47:45.15 OWSTIMER (0x4F2C) 0x7068 SharePoint Foundation Upgrade SiteSequence ajywk INFO SPSite Url=http://Server:22811/sites/BusinessTransformat... 95272a9e-feea-40d6-58a3-6545b6d2ca2a

11/06/2017 07:47:45.15 OWSTIMER (0x4F2C) 0x7068 SharePoint Foundation Upgrade SiteSequence ajywk ERROR Exception: A duplicate content type name "Holiday" was found. 95272a9e-feea-40d6-58a3-6545b6d2ca2a

 

so I went to site settings > site content types & found that there are two content types by the name ‘holiday’ & that was the issue

 

I tried to delete one of the content source & received error ‘the content type is in use’

 

I then tried to renamed the content type & I was able to rename it. after that I was able to upgrade the database to SP2016 version without any issues.

hope this helps !

Comments

Popular posts from this blog

Error ‘Object reference not set to an instance of an object‘ on Review Job Definitions page

users are able to edit other users' mysites

"sorry this site is not shared with you". users unable to access sites after migration to sharepoint 2016