“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

Loading

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 the 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: Errors were found when compiling the workflow

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: SharePoint Troubleshooting

You may also like the below SharePoint troubleshooting articles:

Download SharePoint Online PDF Book

Download SharePoint Online & Office 365 Administration eBook

Buy the premium version of SharePoint Online & Office 365 administration eBook from here:



Buy SharePoint Online & Office 365 Administration eBook


 

Get the free demo PDF eBook from here:

FREE DOWNLOAD

Send download link to:

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

 

About Post Author

Do you have a better solution or question on this topic? Please leave a comment