EnjoySharePoint YouTube Channel

[Fixed] Register-SPWorkflowService Workflow XAML failed validation due to the following errors error while registering workflow service SharePoint 2016/2013

Register-SPWorkflowService Workflow XAML failed validation due to the following errors error while registering workflow service sharepoint 2016

This SharePoint workflow tutorial explains how to solve error: Register-SPWorkflowService: Workflow XAML failed validation due to the
following errors:
Invalid typ (s) ‘Microsoft.Activities.CacheScope’.
HTTP headers received from the server – ActivityId.

Get Office 365 Enterprise E3 Or Business Premium Subscription & Try out all the features

The error comes while Registering SPWorkflowService while configuring Workflow manager 1.0 for SharePoint 2016. After configuring workflow manager 1.0, while running the PowerShell command to register workflow service, I got the below error.

Register-SPWorkflowService -SPSite “http://mypc/sites/MySP2016SiteCollection/” -WorkflowHostUri “http://localhost:12291” -AllowOAuthHttp -Force

After running the above PowerShell command, the error comes as:

Register-SPWorkflowService: Workflow XAML failed validation due to the
following errors:
Invalid type(s) ‘Microsoft.Activities.CacheScope’.
HTTP headers received from the server – ActivityId:
07a06348-b8bd-4a9c-b6d6-cd3ce7ba7685. NodeId: MYPC. Scope: /SharePoint. Client
ActivityId : caa7829d-b770-b073-3e38-2ef805a24d76.
At line:1 char:1
+ Register-SPWorkflowService -SPSite
“http://mypc/sites/MySP2016SiteCollection/” – …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidData: (Microsoft.Share…WorkflowService:
RegisterSPWorkflowService) [Register-SPWorkflowService], ActivityValidatio
nException
+ FullyQualifiedErrorId : Microsoft.SharePoint.WorkflowServices.PowerShell
.RegisterSPWorkflowService

See the fig for more about the error:

Register-SPWorkflowService Workflow XAML failed validation due to the following errors error while registering workflow service sharepoint 2016
Register-SPWorkflowService Workflow XAML failed validation due to the following errors error while registering workflow service sharepoint 2016

Solution to Register-SPWorkflowService Workflow XAML failed validation

Below is the solution to resolve Register-SPWorkflowService Workflow XAML failed validation error.

First Download and Install Service Bus 1.0 Cumulative Update 1.

Then Download and Install WorfkFlow 1.0 Cumulative Update 3.

Then I restarted my machine and run the above PowerShell command. This is not a mandatory step, but if without restarting it did not work then restart the machine once and try, it should work fine.

You may like following SharePoint workflow tutorials:

Hope this will be helpful to solve Register-SPWorkflowService Workflow XAML failed validation error in SharePoint 2013/2016.

Check out Best Alternative to InfoPath -> Try Now
You May Also like the Following SharePoint Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →