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

Thank to: https://www.enjoysharepoint.com/

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.
New to Office 365 SharePoint Online? Get Office 365 Enterprise E3 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.

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.

Comentarios

Entradas populares de este blog

Guía de herramientas básicas para estudiantes: 31 apps y webs imprescindibles para ayudarte con los estudios

Comando FOR para archivos BAT

Policy Based Routing example: route one subnet via ISP A and another via ISP B