I’ve migrated a project from Legacy to Windows and it’s not having error/warning, but when I tried to debug or run getting below error:
The private implementation of activity ‘1: Main’ has the following validation error: The activity delegate with Handler ‘Log Message’ cannot be referenced by activity ‘Try Catch’ because the latter is not in the implementation of activity ‘Main’. An activity delegate can only be referenced by the implementation of an activity which specifies that activity delegate as a child or import. The activity delegate with Handler ‘Log Message’ is declared by activity ‘Try Catch’. at System.Activities.WorkflowInspectionServices.GetActivities(Activity activity)+MoveNext()
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
As it’s not highlighting any particular activity at fault, I would suggest to disable all the activities.
Create another workflow
Copy the activities one by one and check after every block you copy for the error.