I have reusable workflow in sharepoint 2013. It is created in SPD 2013. This workflow is designed to assign tasks to the groups and various approval levels. It seems looks like big. I have been publishing this workflow many times earlier and is working fine. Just I made some customization in my workflow last week. After that I'm unable to publish it. I'm getting the following error.

"Unexpected error on server while associating the worklow"

I increased the "UserDefinedWorkflowMaximumComplexity" of my SharePoint application. Workflow has around 20000. Also resetted the IIS. But everything has failed.

Please help!

Thanks in advance.

  • Have you checked the SharePoint Logs. If we know the exact error in the Logs then the solution would be easy..
    – TARUN
    Commented Apr 7, 2017 at 11:10
  • Yes, we have checked. but it looks the logs have not enough error information related to this issue. Anyways we will check again and get back to you soon. Commented Apr 7, 2017 at 11:16

2 Answers 2


As suggested in the SharePoint designer 2013 error Unexpected error on server associating the workflow try the following:

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

If the issue is is not fixed still, try to Uninstall and install SharePoint Designer 2013 again


You NEED to set the UserDefinedWorkflowMaximumComplexity peoperty to 50000 with same PowerShell command, like:

$app = get-spwebapplication "http://WEBAPP-URL"
$app.UserDefinedWorkflowMaximumComplexity = 50000  

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.