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

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.

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.

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>