Some of us might be faced this issue while publishing the workflow from SharePoint designer. To resolve this, need to extend the UserDefinedWorkflowMaximumComplexity limit for the web application.
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$new_limit = 10000;
$web = Get-SPWebApplication "your web application URL"
$web.UserDefinedWorkflowMaximumComplexity = $new_limit
$web.Update()
Run the following script in your farm
$new_limit = 10000;
$web = Get-SPWebApplication "your web application URL"
$web.UserDefinedWorkflowMaximumComplexity = $new_limit
$web.Update()
No comments:
Post a Comment