Error - "Unexpected error on server associating the workflow" when publishing SharePoint Designer workflow. Also existing workflows "fail on start"

Lai Keng NG 0 Reputation points
2024-09-30T06:08:55.6266667+00:00

As per title.

I noted that errors start occurring from 25 Sep onwards. Is this due to SharePoint CU?

I tried clearing the SharePoint Designer Cache below but is not helpful.

  1. Delete all folders in the following directory in local: C:\Users\USER\AppData\Roaming\Microsoft\SharePoint Designer\ProxyAssemblyCache\
  2. Delete the files in all folders in this directory in local: C:\Users\USER\AppData\Local\Microsoft\WebsiteCache\ don’t delete the folders, just delete the contents of the folders
SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
598 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 25,381 Reputation points Microsoft Vendor
    2024-09-30T09:57:05.2166667+00:00

    Hi @Lai Keng NG ,

    Thank you for posting in this community.

    After installing the September patches, including KB5002624, workflow is getting error "failed on start". KB5002624 has a known workflow issue. Description of the security update for SharePoint Enterprise Server 2016: September 10, 2024 (KB5002624)

    • 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>

    Threads similar to your question for your viewing pleasure:https://learn.microsoft.com/en-us/answers/questions/2077853/after-kb5002624-2010-workflow-is-getting-failed-on


    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.

    0 comments No comments

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.