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

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 “Errors were found when compiling the workflow. The workflow files were saved but cannot be run”, while publishing any workflow using SharePoint Designer 2013.

The workflow files were saved but cannot be run

Below are two solutions you can try.

The workflow files were saved but cannot be run SharePoint

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\\AppData\Local\Microsoft\WebsiteCache”

Clear the history and republish

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

You can also follow the below solution to fix the issue.

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.

Register-SPWorkflowService -SPSite 'http://myhost/mysite' -WorkflowHostUri 'http://workflowhost:12291' -AllowOAuthHttp –Force

Ensure these below services are running,

In Services.msc, If not start

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

In IIS,

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

You may like SharePoint designer 2013 workflow tutorials:

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

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>