When updating SPS 2019 (RTM) with an SPS CU (December 2020 CU) I get the following warning messages in the upgrade log :
02/10/2021 11:06:31.41 psconfigui (0x2AB4) 0x2B8C SharePoint Foundation Upgrade SPContentDatabaseSequence2 arir1 WARNING Exception occured when Bump Feature Vesions. System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence2.FeatureUpgader.MaxFeatureIdForGhosting(SPFeatureDefinition featureDef)
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence2.FeatureUpgader.BumpFeatureVersionsCore()
at Microsoft.SharePoint.Upgrade.SPContentDatabaseSequence2.FeatureUpgader.BumpFeatureVersions() 00000000-0000-0000-0000-000000000000
In this environment only the Nintex 2019 is installed as an additional component.
Trying to find out the cause of the warnings I found that it is caused by nintexcommon.wsp.
If I deployed nintexcommon.wsp in my home test environment I could reproduce the issue (without it no warnings happen when updating with a CU).
With further research it seems that SPS have some problem with the CustomUpgradeAction-s of the NintexAdminFeature (c3d75af5-71e9-4df5-a18f-b86511b60557).
This feature have 3 CustomUpgradeAction:
C:Program FilesCommon Filesmicrosoft sharedWeb Server Extensions16TEMPLATEFEATURES NintexAdminFeatureFeature.xml
--------------------------------------------------------------------------------------------------------
<UpgradeActions ReceiverAssembly="Nintex.Administration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=913f6bae0ca5ae12" ReceiverClass="Nintex.Administration.Features.NintexAdminFeature.NintexAdminFeatureEventReceiver">
<CustomUpgradeAction Name="WebConfigModsToWebApp"></CustomUpgradeAction>
<CustomUpgradeAction Name="InstallConsumptionLicensingJobs"></CustomUpgradeAction>
<CustomUpgradeAction Name="InstallSubscriptionComplianceReporting"></CustomUpgradeAction>
</UpgradeActions>
None of the appear when using the Get-SPUpgradeActions cmdlet in SPS management shell.
While for other Nintex features customupgradeactions are listed by the Get-SPUpgradeActions cmdlet.
Eg. the NintexFormsWebApplication, NintexFormsAdminWeb, NintexWorkflowAdmin features also have a 'WebConfigModsToWebApp' customupgradeaction , and it is displayed by the Get-SPUpgradeActions cmdlet, while it is not displayed for NintexAdminFeature (c3d75af5-71e9-4df5-a18f-b86511b60557).
Checking the sharepoint diagnostic (ULS) log while running the Get-SPUpgradeActions cmdlet the following error is displayed:
02. 15. 2021 10:23:44.20 PowerShell.exe (0x1E28) 0x3694 SharePoint Foundation Upgrade ah9sj Medium
Error evaluating upgrade actions for feature c3d75af5-71e9-4df5-a18f-b86511b60557 while listing known upgrade actions.
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.SharePoint.Upgrade.SPUpgradeActionInfo.FillFromFeatureAction(SPFeatureUpgradeAction fua)
at Microsoft.SharePoint.Upgrade.SPUpgradeActionInfo.ListKnownFeatureUpgradeActions(SPChunkedArrayList`1& upgradeActions)
d972ab9f-dc13-c0a4-d179-ed82b5b0db77
Anyone else have seen this warning in the upgrade log ? Any solution for this ?
In test environment of course I can retract the nintexcommon.wsp , do the SPS CU update, and redeploy the nintexcommon.wsp, but Im afraid to advise this wokaround for a production environment.