Symptoms
Consider the following scenario:
-
You manually enable the Antimalware Scan Interface (AMSI) integration on one or more web applications in your SharePoint Server Subscription Edition farm, as described in the Configure AMSI integration with SharePoint Server article.
-
You install Description of the security update for SharePoint Server Subscription Edition: September 12, 2023 (KB5002474).
In this scenario, when you try to trigger the new upgrade actions included in this security update by running the SharePoint Products Configuration Wizard, the Upgrade-SPFarm PowerShell cmdlet, or the psconfig.exe -cmd upgrade -inplace b2b command line operation, you receive the following error message:
An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown. Additional exception information:
Action 16.0.44.1 of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed. (EventID:ajywk)
Exception: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated
(EventID:ajywk)
Upgrade [SPWebApplication Name=<Web Application Name>] failed. (EventID:an59t)
Inner Exception: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated
(EventID:an59t)
Exception: Action 16.0.44.1 of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed. (EventID:an59t)
(EventID:an59t)
Upgrade Timer job is exiting due to exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Action 16.0.44.1 of Microsoft.SharePoint.Upgrade.SPWssWebApplicationSequence failed. ---> System.Data.DuplicateNameException: Feature 'AntimalwareScan' (ID: 4cf046f3-38c7-495f-a7da-a1292d32e8e9) is already activated at scope '<Web Application URL>'. --- End of inner exception stack trace ---
Cause
This issue occurs because the upgrade action tries to enable the AMSI integration feature on web applications even if the feature is already enabled.
Resolution
To fix this issue, install October 10, 2023, update for SharePoint Server Subscription Edition (KB5002506).
More information
This issue affects only SharePoint Server Subscription Edition. SharePoint Server 2016 and SharePoint Server 2019 are not affected by this issue.