Topic
Unable to publish or run workflows after installing SharePoint On-Premises September 2024 CU on SharePoint 2013, 2016, 2019, SPSE
Failed to publish workflow: This feature has been temporarily disabled.
Workflow Compilation XPath killswitch resulted in an exception: System.InvalidOperationException: This feature has been temporarily disabled
The issue also generates event tag “c42q0” in SharePoint Unified Logging System (ULS) logs.
Instructions
To resolve the issue, add the following line to SharePoint web application's web.config file on all servers in the farm:
<authorizedType Assembly="Microsoft.SharePoint.WorkflowActions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="Microsoft.SharePoint.WorkflowActions.WithKey" TypeName="*" Authorized="True" />
These need to be added in the authorizedTypes config section (configuration -> System.Workflow.ComponentModel.WorkflowCompiler -> authorizedTypes -> targetFx)
Note: After updating the web.config, restart the IIS and SharePoint Timer service for the changes to take effect.
Additional Information
This is a known issue with SharePoint's Sep 2024 CU which has been documented under known issues section within the KB release notes itself: