Legacy-To-Windows: 'Log Message' cannot be referenced by activity 'Try Catch'

Hi,

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()

Please help to resolve.

Thanks !

@UiPath_Community Do anyone any idea what does the error mean, I did check the code but there are no errors or warning.

Usually when I get errors after converting a project, it is enough to remove activities that throw errors and then add them again

@Rohit_More,

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.

Thanks,
Ashok :slight_smile:

Thanks @ashokkarale :slight_smile:

Followed this way and it’s now working

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.