Asked by:
SharePoint Designer 2013 Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow.

Question
-
Hello
I am creating a multi step workflow with multiple Approval steps. When I get to step 7 or the 7th Approval step and try to publish it, it states that "Errors were found when compiling the workflow. The workflow files were saved but cannot be run." With "Unexpected error on server associating the workflow" in the advanced section. This same error occurs at other stages of the approvals as well.
also i tried this workaround
1. <httpRuntime maxRequestLength="51200" executionTimeout="500" />
2. $app = get-spwebapplication "http://WEBAPP-URL"
$app.UserDefinedWorkflowMaximumComplexity = 50000
$app.Update()
Thanks for the help!
- Edited by M_IT Wednesday, June 28, 2017 8:04 AM
Wednesday, June 28, 2017 8:03 AM
All replies
-
Hi,
I assume, its SharePoint 2013 workflow if yes , Have you register your workflow service in your site collection ? If not use the below PS command.
Register-SPWorkflowService -SPSite 'https://sitecollectionurl' -WorkflowHostUri 'http://workflowhost:12291' -AllowOAuthHttp -Force
Please remember to click Mark as Answer on the answer if it helps you
Wednesday, June 28, 2017 8:50 AM -
Hi Murugesa Pandian,
Yes it sp 2013,
and i already did it Register-SPWorkflowService -SPSite 'https://sitecollectionurl' -WorkflowHostUri 'http://workflowhost:12291' -AllowOAuthHttp -Force
Thanks
Wednesday, June 28, 2017 9:31 AM -
Someone?Sunday, July 2, 2017 11:22 AM
-
Hi M_IT,
Please create a simple workflow with only one or few approval task and step, check if you can publish this workflow successfully.
If the issue exists, try to clear the SharePoint Designer cache and try again:
If not, please check if your original workflow has some data and logic error.
Of if there are some various and actions exceed the limit of workflow, check with the article below:
https://technet.microsoft.com/en-us/library/cc262787(v=office.15).aspx#Workflow
Besides, here are some similar post for your reference:
http://www.sharepointsapiens.com/blog/sharepoint-designer-errors-found-compiling-workflow/
Best regards,
Grace Wang
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Proposed as answer by Linda ZLMicrosoft contingent staff Sunday, July 9, 2017 6:36 AM
Monday, July 3, 2017 7:21 AM