I have a 2 server farm, Front-end with Distributed Cache + Application with Search. Started from 2010, migrated to 2013, 2016 and last month to 2019. At the last one I had some troubles, I just noticed few days ago, that the WSS_Content has this message. The problem is the following:
If I run Test-SPContentDatabase WSS_Content
I get some warnings, but all are non-blocking. If i run Upgrade-SPContentDatabase WSS_Content
I get the following error:
Upgrade-SPContentDatabase : Upgrade completed with errors. Review the upgrade log file located in C:\Program Files\Common
Files\Microsoft Shared\Web Server Extensions\16\LOGS\Upgrade-20220926-203719-297-f21c6c6f4d824e8d9e07bf74fc4ecaf9.log. The number of
errors and warnings is listed at the end of the upgrade log file.
At line:1 char:1
+ Upgrade-SPContentDatabase WSS_Content
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...ContentDatabase:SPCmdletUpgradeContentDatabase) [Upgrade-SPContentDatab
ase], SPUpgradeException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletUpgradeContentDatabase
If I check the log:
...
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj2bj ERROR Feature upgrade action 'CustomUpgradeAction.LocalizeVisibleMicroFeedFieldDisplayNames' threw an exception upgrading Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7') in Web 'http://portal/tools': <nativehr>0x80070002</nativehr><nativestack></nativestack> c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r9 DEBUG [SPRequest Objects=1] for feature upgrade action CustomUpgradeAction.LocalizeVisibleMicroFeedFieldDisplayNames applying to version range [null, 15.0.6.0) for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r9 DEBUG [SQL Query Count=1] for feature upgrade action CustomUpgradeAction.LocalizeVisibleMicroFeedFieldDisplayNames applying to version range [null, 15.0.6.0) for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r9 DEBUG [CPU Cycles=13259864] for feature upgrade action CustomUpgradeAction.LocalizeVisibleMicroFeedFieldDisplayNames applying to version range [null, 15.0.6.0) for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r9 DEBUG [Execution Time=7.485] for feature upgrade action CustomUpgradeAction.LocalizeVisibleMicroFeedFieldDisplayNames applying to version range [null, 15.0.6.0) for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj2be INFO Ending upgrade for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 and definition version 15.0.6.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r7 DEBUG [SPRequest Objects=1] for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 and definition version 15.0.6.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r7 DEBUG [SQL Query Count=1] for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 and definition version 15.0.6.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r7 DEBUG [CPU Cycles=17234898] for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 and definition version 15.0.6.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPFeatureDefinition aj3r7 DEBUG [Execution Time=7.9107] for [Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7')] with instance version 15.0.5.0 and definition version 15.0.6.0 in Web 'http://portal/tools' c5d468a0-5416-6047-750b-2c8a5707907c
09/26/2022 20:46:48.51 powershell_ise (0x4758) 0x23A8 SharePoint Foundation Upgrade SPWebWssSequence2 ajy85 ERROR Feature upgrade incomplete for Feature 'MySiteMicroBlog' (Id: 15/'ea23650b-0340-4708-b465-441a41c37af7') in Web 'http://portal/tools'. Exception: <nativehr>0x80070002</nativehr><nativestack></nativestack> c5d468a0-5416-6047-750b-2c8a5707907c
...
If I unistall the feature MySiteMicroBlog
the message Database is up to date, but some sites are not completely upgraded.
does not show up, the command Upgrade-SPContentDatabase WSS_Content_Intranet
says that no upgrade is required, but some webparts are not rendered at all.
I found this on the web, to upgrade the feature, here again:
$featureName="MySiteMicroBlog"
$latestVersion=(get-spfeature|where {$_.DisplayName -eq $featureName}).Version
$web=get-spweb http://portal/tools
$theFeature=$web.Features|Where {$_.Definition.DisplayName -eq $featureName}
$currentVersion=$theFeature.Version
write-host "Current Version: $currentVersion, Latest Version: $latestVersion"
$theFeature.Upgrade($false)
I get the following error:
<nativehr>0x80070002</nativehr><nativestack></nativestack>
Any Ideas?