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

In this post, we will discuss how we can resolve an issue which comes while Registering SPWorkflowService while configuring Workflow manager for SharePoint 2016. Recently while configuring a workflow manager for SharePoint 2016, I got the below error while running the PowerShell command to register workflow service.

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

Also, read:
How to create application pages in SharePoint 2013 using Visual Studio 2013?

How to integrate Yammer with SharePoint 2013 online and SharePoint 2013 on-premises?

Search Items based in ID column in SharePoint 2013 SmallInputSearchBox

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:
I googled a lot but thaks to Asish, for sharing such a beautiful solution.

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 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.

Hope this will be helpful.


You May Also like the Following SharePoint Online 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 →