Showing posts with label Error. Show all posts
Showing posts with label Error. Show all posts

Thursday, April 18, 2013

Cannot Publish SharePoint 2013 Workflow using SharePoint Designer

When trying to publish SharePoint 2013 Workflow using SharePoint designer 2013, sometimes the following exception appears:

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
Cannot set unknown member 'CompositeTask.RelatedContentLinkListItemIntegerId'. HTTP headers received from the server - ActivityId: 15459ce7-8e0d-4267-aa59-cc724289e422. NodeId: TECSRVSOL02. Scope: /SharePoint/default/c8ca3a4c-bb1a-4056-b675-597fa0348916/0d4731cd-bfe2-47b6-acd2-6caa6bd45931

I tried so hard to find a solution for this until I found this post (http://sp2013-blog.com/2013/04/solution-errors-were-found-when-compiling-the-workflow-the-workflow-files-were-saved-but-cannot-be-run-cannot-set-unknown-member/) Michael and the following Post by Tarek Yehia (http://sharepointserver-2007.blogspot.ae/2013/04/sharepoint-designer-error-while.html).

Basically, The solution was to register Workflow service again using SharePoint 2013 Power Shell.

Register-SPWorkflowService -SPSite 'https://myhost/mysite' -WorkflowHostUri 'https://workflowhost' -AllowOAuthHttp -Force