Monday, May 13, 2013

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.

No comments:

Post a Comment