“Errors were found when compiling the workflow. The workflow files were saved but cannot be run” in the SharePoint Designer 2010 workflow

[Fixed]: Errors were found when compiling the workflow. The workflow files were saved but cannot be run – SharePoint Designer

No comments

 551 total views,  2 views today

A couple of days back we have seen an error “Errors were found when compiling the workflow. The workflow files were saved but cannot be run” while trying to publish the SharePoint designer workflow. The error details were – “Unexpected error on server associating the workflow”

“Errors were found when compiling the workflow. The workflow files were saved but cannot be run” in the SharePoint Designer 2010 workflow
“Errors were found when compiling the workflow. The workflow files were saved but cannot be run” in the SharePoint Designer 2010 workflow

This error we have noticed in the workflow of the SharePoint 2010 version but it could be in other versions of SharePoint as well.

How to fix the “Errors were found when compiling the workflow. The workflow files were saved but cannot be run” error?

Go to the “Workflow settings” page from the list settings page.

Remove, Block, or Restore a Workflow - Workflow Settings Page in SharePoint list settings
Remove, Block, or Restore a Workflow – Workflow Settings Page in SharePoint list settings

Click on the “Remove, Block, or Restore a Workflow” link.

Remove SharePoint 2010 workflow from workflow settings page
Remove SharePoint 2010 workflow from the workflow settings page

Locate the workflow which causing this issue. There we might see – there were many versions of the same workflow that have been published – so we should remove all previous versions of the workflow.

Click Ok button.

Now, go to the Sharepoint designer and publish the workflow again – this time we will not face this issue.

Notes:

  • The above error could be due to other reasons as well – but this is one of the reasons.

Summary

Thus in this SharePoint troubleshooting, we have learned how to fix the “Errors were found when compiling the workflow. The workflow files were saved but cannot be run” error.

See Also

You may also like the below SharePoint troubleshooting articles:

Free download SharePoint Online & Office 365 Administration eBook(238 Pages)

Get the PDF eBook from here:




 

 
FREE DOWNLOAD

Send download link to:

Subscribe to get exclusive content and recommendations every month. You can unsubscribe anytime.