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
Logs:
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/_vti_aut/author.dll) 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x20F0 SharePoint Foundation General af71 Medium HTTP Request method: POST 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x20F0 SharePoint Foundation General af75 Medium Overridden HTTP request method: POST 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x20F0 SharePoint Foundation General af74 Medium HTTP request URL: /enterprise/marketing/Content%20Management/_vti_bin/_vti_aut/author.dll 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x20F0 SharePoint Foundation General 72ng Medium RPC method = put document 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.32 w3wp.exe (0x1240) 0x20F0 SharePoint Foundation General 72n3 Medium put file doc URL = Workflows/Cust - All Calendar Mover/Cust - All Calendar Mover.xoml.wfconfig.xml 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.40 w3wp.exe (0x1240) 0x1EA0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/_vti_aut/author.dll)). Execution Time=90.3983606855061 905ac3f9-9a15-43b1-8739-67084a637c66
02/03/2014 10:52:20.57 w3wp.exe (0x1240) 0x1EA0 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx))
02/03/2014 10:52:20.57 w3wp.exe (0x1240) 0x1EA0 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx) 2b5d2e57-744f-4594-84d2-b6a055922269
02/03/2014 10:52:20.57 w3wp.exe (0x1240) 0x1EA0 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx)). Execution Time=3.74153698305232 2b5d2e57-744f-4594-84d2-b6a055922269
02/03/2014 10:52:20.60 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx))
02/03/2014 10:52:20.60 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx) 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.62 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.62 w3wp.exe (0x1240) 0x0CD0 SharePoint Foundation Topology e5mc Medium WcfSendRequest: RemoteAddress: 'http://spwebserver:32843/90c44574668945e4ad89bec840140dc7/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:ea4a4503-74d8-49e7-954e-ac6fde43110f'
02/03/2014 10:52:20.63 w3wp.exe (0x109C) 0x1844 SharePoint Foundation Topology e5mb Medium WcfReceiveRequest: LocalAddress: 'http://spwebserver.local:32843/90c44574668945e4ad89bec840140dc7/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges' MessageId: 'urn:uuid:ea4a4503-74d8-49e7-954e-ac6fde43110f' 22e6930c-d5ff-468d-8121-88d62f038018
02/03/2014 10:52:20.63 w3wp.exe (0x109C) 0x1844 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (ExecuteWcfServerOperation) 22e6930c-d5ff-468d-8121-88d62f038018
02/03/2014 10:52:20.63 w3wp.exe (0x109C) 0x1844 SharePoint Server Taxonomy fuc5 Medium MetadataWebServiceApplication.GetChanges called on 'Hosting Farm Tenant Managed Metadata Service' starting. 22e6930c-d5ff-468d-8121-88d62f038018
02/03/2014 10:52:20.63 w3wp.exe (0x109C) 0x1844 SharePoint Server Taxonomy fuc6 Medium MetadataWebServiceApplication.GetChanges called on 'Hosting Farm Tenant Managed Metadata Service' completed. 22e6930c-d5ff-468d-8121-88d62f038018
02/03/2014 10:52:20.63 w3wp.exe (0x109C) 0x1844 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (ExecuteWcfServerOperation). Execution Time=1.85945420437514 22e6930c-d5ff-468d-8121-88d62f038018
02/03/2014 10:52:20.65 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData). Execution Time=11.9576650104971 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.71 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (EnsureListItemsData#3). Execution Time=10.468369583285 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.73 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation General avfy High SOAP exception: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.Workflow.SPWorkflowAssociation.set_AutoStartCreate(Boolean value) at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.AssociateDeclarativeWorkflow(SPWeb web, SPWorkflowTemplate template, XmlDocument configInfo, SPWorkflowAssociation& newAssociation) at Microsoft.SharePoint.SoapServer.WebPartPagesWebService.AssociateWorkflowMarkup(String configUrl, String configVersion) 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.73 w3wp.exe (0x1240) 0x22E8 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (POST:https://testsp.testdomain.com/enterprise/marketing/Content%20Management/_vti_bin/webpartpages.asmx)). Execution Time=129.046848132933 52480d4a-d374-444e-a422-6bf4d005abd0
02/03/2014 10:52:20.80 w3wp.exe (0x161C) 0x0EFC Excel Services Application Excel Calculation Services 8jg2 Medium ResourceManager.PerformCleanup: Memory Manager: CurrentSize=467992576. 53fed7f1-cd9a-7517-0000-000050f7b00c
The same workflow works fine in Dev but not in Production...!