Errors were found when compiling the workflow. The workflow files were saved but cannot run. - SharePoint 2013

Today while trying to publish the workflow, came across the weird error
"Errors were found when compiling the workflow. The workflow files were saved but cannot run."



After digging into it, came to the solution that need to  Re-register service into my site using following commands:


Register-SPWorkflowService -SPSite 'https://my-host/mysite' -WorkflowHostUri 'https://workflowhost' -AllowOAuthHttp -Force

I reopened SharePoint Designer again and problem disappeared.

Hope this will save your time.

Comments

  1. This article on workflow compilation errors in SharePoint 2013 is very insightful! Just like the hekate switch ensures smooth gameplay, troubleshooting these errors can help streamline your SharePoint workflows.

    ReplyDelete

Post a Comment

Popular posts from this blog

Search Result Webpart,Filter result If QueryString is present in URL

SharePoint 2013 Workflow gets canceled automatically

Permission denied for "Add and Customize Pages" in Sharepoint Online