Microsoft.Workflow.Client.ActivityNotFoundException The activity named WorkflowXaml_GUID from scope error while deploying workflow to another server SharePoint online

Microsoft.Workflow.Client.ActivityNotFoundException The activity named WorkflowXaml_GUID from scope error while deploying workflow to another server SharePoint online

Recently while trying to deploy a workflow from one site collection to another site collection in my office 365 SharePoint online site collection I got the below error. The error comes when I tried to activate the feature. The error comes like below:

Microsoft.Workflow.Client.ActivityNotFoundException: The activity named ‘WorkflowXaml_GUID’ from scope ‘/spo/248fadea-e82b-4d15-bf03-d00b7947ca36/a6b8142a-8120-4823-a855-f400460ec143’ was not found. HTTP headers received from the server – ActivityId: GUID. NodeId: Scope: Client ActivityId : GUID. —-> System.New.WebException: The remote server returned an error.

 Microsoft.Workflow.Client.ActivityNotFoundException The activity named WorkflowXaml_GUID from scope error while deploying workflow to another server SharePoint online
Microsoft.Workflow.Client.ActivityNotFoundException The activity named WorkflowXaml_GUID from scope error while deploying workflow to another server SharePoint online

Also, read:
Get column display name and internal name using SharePoint object model

Configure On-Premise environment for Apps in SharePoint 2016

How to disable mobile page redirection for SharePoint 2013?

Solution:
The workflow which I was trying to deploy is a very simple workflow having only a Log to history action which is trying to write some information to the Log to the History list. I don’t have any other dependent component.

But the workflow was using Log to History and MyTask list (which we have given while developing the SharePoint 2013 designer workflow).

When I try to browse these two lists in the target site, I got the file not found an error. So I created a sample workflow in the targeted site which internally creates Workflow History and MyTask list.


Then I redeploy the whole thing and it worked 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 →