Hello there, I am facing an issue while I publish a workflow (non-associated with lists) that exists in app (provider hosted mvc) and includes custom workflow activity. I use visual studio 2013 with client side object model and the error that throws is:
Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Cannot create unknown type '{wf://workflow.windows.net/default/b838e2ae-bc23-4daf-a64e-3809e16d507f/885a7915-e512-40d5-b3e5-c321a20f114b/$Activities/namespace name}TestCustom'. HTTP headers received from the server - ActivityId: 629eab29-c4df-4ad5-af2f-3896b97cd8fa. NodeId: . Scope: /SharePoint/default/b838e2ae-bc23-4daf-a64e-3809e16d507f/885a7915-e512-40d5-b3e
While I deploy the app in the host url, I use the below code:
hostWebWorkflowDeploymentService.PublishDefinition(newWorkflow.Id);
and this process throws the error.
Before publishing it I save it successfully to the host url:
hostWebWorkflowDeploymentService.SaveDefinition(newWorkflow);
Is there any way to avoid this error? Or I am missing something?
(Visited 18 times, 1 visits today)