Workflow Error On SharePoint : Unexpected error on server associating the workflow

Ankit Nishant 0 Reputation points
2024-09-17T08:33:53.8466667+00:00

Hi,

While publishing a workflow yesterday, I am getting this error: -

Screenshot 2024-09-17 102105

I use SharePoint Designer 2013 and SharePoint Online 2016. But Workflow platform type is SharePoint 2010 Workflow by default which is the only one available in my organization. It was working fine till yesterday.

I tried the resolution provided here : https://video2.skills-academy.com/en-us/answers/questions/1617442/unexpected-error-on-server-associating-the-workflo

But none of them worked so far!

Requesting immediate support!

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,336 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 46,086 Reputation points Microsoft Vendor
    2024-09-18T02:43:37.7533333+00:00

    Have you installed recent update for SharePoint?

    When you install security update KB5002624 for SharePoint 2016, you must need to install language pack KB5002524 at the same time.

    There is a new issue in this update, you might experience an issue in which SharePoint workflows can't be published because the unauthorized type is blocked. This issue also generates event tag "c42q0" in SharePoint Unified Logging System (ULS) logs.

    To work around this issue, register the safe types in the Web.config file. You can look for event tag "c42q0" in ULS logs to find the blocked type. If the type and assembly are safe, add the type to the authorized list in the Web.config file.

    For example:

    <System.Workflow.ComponentModel.WorkflowCompiler>    
       <authorizedTypes>      
         <targetFx version="v4.0">         
           <authorizedType Assembly="Microsoft.SharePoint.WorkflowActions, Version=16.0.0.0, Culture=neutral, PublicKeyToken=null" Namespace="Microsoft.SharePoint.WorkflowActions.WithKey" TypeName="*" Authorized="True" />
       </targetFx>    
       </authorizedTypes>
    

    Reference:

    https://support.microsoft.com/en-us/topic/description-of-the-security-update-for-sharepoint-enterprise-server-2016-september-10-2024-kb5002624-db6c8b15-b9e8-4fa5-a34a-b99a0341271e


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.