July 6, 2016

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Failed to create a 'ListId' from the text

Problem:

I have created a Designer workflow for SharePoint 2013 List in development site and moved it to production environment. In Production environment, when I tried to activate the feature related to my custom workflow after uploading and activating the workflow package into the Solution Gallery, I encountered the error:

Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors: Failed to create a 'ListId' from the text....

Cause:
I forgot to create one dependency List related to workflow solution in Production environment and tried to activate feature. Because of this, I encountered the above error.

To Solve this, I have created the dependency list and tried to activate the feature again, even this time I encountered the same error.

Resolution:
Because of the workflow instance that has already been created during the first erroneous deployment process, We need to delete that workflow instance through SharePoint designer and then re-activating the feature. This has solved my problem and workflow has been created successfully.


If you have any questions you can reach out our SharePoint Consulting team here.

No comments:

Post a Comment