EnjoySharePoint YouTube Channel

Error were found when compiling the workflow. The workflow files were saved but cannot be run.

SharePoint 2013 workflow publish error

This SharePoint workflow tutorial explains, how to resolve the SharePoint designer workflow error which comes when we try to publish a SharePoint 2013 designer workflow. The error comes when we try to publish: Error thrown as below “Error were found when compiling the workflow. The workflow files were saved but cannot be run”, while publishing any workflow using SharePoint Designer 2013.

Get Office 365 Enterprise E3 Or Business Premium Subscription & Try out all the features

SharePoint 2013 workflow publish error
SharePoint 2013 workflow publish error

Below are two solutions you can try.

Solution I.
1. Clear the SharePoint Designer Cache in these two places and Republish the workflow.

  • C:\Users\< your account> \AppData\Roaming\Microsoft\Web Server Extensions\Cache”
  • C:\Users\<your account>\AppData\Local\Microsoft\WebsiteCache”

2. Clear the history and republish

Solution II:
1. Register-SPWorkflowService -SPSite ‘http://myhost/mysite’ -WorkflowHostUri ‘https://workflowhost:12290’ -AllowOAuthHttp -Force
If this issue happens in the non-production farm, you can register workflow service using HTTP (not HTTPS protocol) & forget worrying about certificates.

2. Register-SPWorkflowService -SPSite ‘http://myhost/mysite’ -WorkflowHostUri ‘http://workflowhost:12291’ -AllowOAuthHttp –Force

Ensure these below services are running,
1. In Services.msc, If not start

  • Service Bus Gateway
  • Service Bus Message Broker
  • Windows Fabric Host Service
  • Workflow Manager Backend

2. In IIS,

  • Application Pool of Workflow Management Service
  • Workflow Management Site is browseable.

You may like following SharePoint designer workflow tutorials:

Hope this SharePoint 2013 tutorial helps to resolve, Error were found when compiling the workflow. The workflow files were saved but cannot be run error which comes while publishing SharePoint designer workflows.

Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Tutorials: