Failed to publish workflow that contains User Defined Action (UDA)

  • 26 March 2021
  • 0 replies
  • 192 views

Badge +4

Issue

When publishing a workflow that contains User Defined Action (UDA), the following error might occur:

 

soap:ServerServer was unable to process request. --> Failed to publish workflow: Error in the application. 

Error Code

18395i15A20122FA95C2A8.png

 

 

Resolution

Increased the UserDefinedWorkflowMaximumComplexity using the following PowerShell script:

 

[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

$new_limit = 50000;

$webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup('webApplicationURL)

$webapp.UserDefinedWorkflowMaximumComplexity = $new_limit

$webapp.Update()

 

Additional Information

Workflow library failed to compile because it exceeded UserDefinedWorkflowMaximumComplexity of 7000

 

Related Links


0 replies

Be the first to reply!

Reply