Workflow Fails to Compile and Publish in SharePoint Designer 2010

Nigel Ainscoe picture Nigel Ainscoe · Oct 3, 2011 · Viewed 15.5k times · Source

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

Answer

Kylie picture Kylie · Dec 3, 2012

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.