Navigation

Sunday 10 May 2015

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

If you are planning to move SharePoint 2013 List workflow from development site to Production environment you must check all the resources (Like Lists/document library or SP groups etc) are existing in the production site before importing workflow package. 

Check https://msdn.microsoft.com/en-us/library/office/jj819316.aspx link for more information about how to package and deploy SharePoint designer workflows.

In one scenario I forgot to create one dependency List that i used in the target workflow and tried to activate the related workflow feature after uploading the workflow package into the Solution Gallery, because of this 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.... 

You will also see some related useful information in the above error (I have removed the some of error message part as that was not required to mention here). 

So I have created the dependency list and again tried to activate the feature.. even this time  I encountered same error because there was already workflow has been created  during the first error so we need to delete that workflow using SharePoint designer and retry activating the feature related to workflow package. This solved my problem and workflow has been created successfully.


No comments:

Post a Comment