{"id":6816,"date":"2014-04-22T13:29:41","date_gmt":"2014-04-22T13:29:41","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails\/"},"modified":"2016-07-28T10:54:58","modified_gmt":"2016-07-28T10:54:58","slug":"sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/sharepoint-2010-to-2013-search-service-application-upgrade-issueaction-15-0-80-0-fails\/","title":{"rendered":"SharePoint 2010 to 2013 Search Service Application Upgrade Issue&ndash;Action 15.0.80.0 Fails"},"content":{"rendered":"<p>During the course of upgrading a search application database from SharePoint 2010 to SharePoint 2013 we encountered an error in PowerShell:<\/p>\n<p>Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 15.0.80.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed<\/p>\n<p>And we traced it back down to this error in the ULS:<\/p>\n<p>SqlError: &#8216;The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name &#8216;dbo.MSSSchemaPropertyMappingsPending&#8217; and the index name &#8216;IX_MSSSchemaPropertyMappingsPending&#8217;. The duplicate key value is &#8230;<\/p>\n<p>The cause of this appears to be that the upgrade process is attempting to create a unique key on the table, but the values in the table are non-unique which results in an error.&#160; The solution is to remove the duplicate keys, which can be done via this script:<\/p>\n<p>WITH CTE AS(select *, rn=row_number() over (partition by CrawledPropertyId, PID order by CrawledPropertyId, PID) FROM MSSSchemaPropertyMappingsPending) DELETE FROM CTE WHERE RN &gt; 1<\/p>\n<p>We also had an issue where, by the time we had this error, the Search Service Application was half created and difficult to delete.&#160; We ultimately had to get the GUID of the search service application and use stsadm.exe -o deleteconfigurationobject and then delete the SPDatabase objects associated with the half created service using Get-SPDatabase and then calling .Delete() off each SPDatabase object.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>During the course of upgrading a search application database from SharePoint 2010 to SharePoint 2013 we encountered an error in PowerShell: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 15.0.80.0 of Microsoft.Office.Server.Search.Upgrade.SearchAdminDatabaseSequence failed And we traced it back down to this error in the ULS: SqlError: &#8216;The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object&#8230;&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-6816","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=6816"}],"version-history":[{"count":3,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6816\/revisions"}],"predecessor-version":[{"id":42373,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/6816\/revisions\/42373"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=6816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=6816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=6816"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=6816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}