Workflow Fails to Compile and Publish in SharePoint Designer 2010

sharepointsharepoint-designersharepoint-workflowworkflow

The SharePoint install is a SP2010 install on a 2008 R2 server. Everything is fully patched. I am running the SP Designer on the SharePoint Server directly.

I have a workflow which is intended to send an email when a new document is created in a custom list. I have deliberately kept the workflow very simple in order to illustrate this problem.

After creating this single step workflow in SP Designer, I click "Check for Errors" and SP Designer reports "The workflow contains no errors".

I then click "Publish" but the Workflow Error dialog is displayed with the message

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

Clicking the advanced button reveals more information:

Could not publish the workflow because the workflow configuration file
contains errors

Any suggestions gratefully received

Best Answer

I'll share what fixed it for me - deactivating all workflow features at the site collection level (that is, Workflows, Three-state workflow, Publishing Approval Workflow) and then reactivating the features. I was then able to publish my workflow. This post helped, not sure whether this only works for 365 though, but it's sure worth trying first if you are considering a reinstall.

Related Topic