When publishing one of our workflows I encountered the error “Soap:ServerServer was unable to process request –>Failed to publish workflow. Error in application. I ran many tests and was unable to find a definite cause. Finally found this in one of the blog 🙂
Resolution:
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $new_limit = 50000; $webapp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup("webApplicationURL") $webapp.UserDefinedWorkflowMaximumComplexity = $new_limit $webapp.Update()