We are getting the error “Errors were found when compiling
the workflow the workflow files were saved but cannot be run “when we are
trying to publish the workflow.
Click on “All Files”
Click on Workflows
In All Files expand the Workflows click on +
Again expand the particular workflow, there you can able to
see the couple of files, open the .WFconfig.xml file in advanced mode there we
can able to see the <Association ListID =”{previous list id}” , place the
current site list id and save it.
Now you can able to see the workflow is Associated with
list. We can able to Save and publish the Workflow without any issues.