0 votes
1 view
in RPA by (5.3k points)

I'm trying to launch a workflow, previously saved in a xaml file with UIPath Studio, from a visual studio project (c#).

Here the code:

string pathToWorkflow = appl.Default.XAMLPath; System.Activities.Activity workflowAsActivity = System.Activities.XamlIntegration.ActivityXamlServices.Load(pathToWorkflow); System.Activities.WorkflowInvoker invoker = new System.Activities.WorkflowInvoker(workflowAsActivity); Dictionary<string, object> param = RiempiParam(); invoker.Invoke(param);

This code generate this exception:

Impossibile creare il tipo sconosciuto (Impossible to create the unknown type) '{http://schemas.uipath.com/workflow/activities}WindowScope'.

The project already refer to UiPath.Interop.dll, the same used in uipath studio.

What's wrong?

1 Answer

0 votes
by (9.5k points)

 I think by mistake you deleted the package of activity that defines WindowScope installed. The problem states that only.

This should be in the core activities

 

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...