Excel automation doesn't work when launched from CMD with UiRobot

Hi all!

Here Miguel from Spain, developing an automation with UiPath Studio Community

I need some help regarding launching an automation with the UiRobot. Here are the facts:

UiPath Studio 2018.2.0 on a Windows 10 Pro 64-bit. An automation that works good with the UiPath application.

Then i want to launch the same automation from the command line, with the UiRobot. Here’s the command line (i have stripped the path) that i launch:

C:.…\UiRobot.exe -file “C:.…\Construccio_Metriques\Main.xaml”

Then i get this error:

C:.…\UiRobot.exe -file “C:.…\Construccio_Metriques\Main.xaml”
Construcció métriques System.Xaml.XamlObjectWriterException: Cannot create unknown type ‘{http://schemas.uipath.com/workflow/activities}ExcelApplicationScope’.
at System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType)

at UiPath.Executor.RobotRunner.<>c__DisplayClass54_0.b__0()

I’ve read something on the forum, but not a clear solution. A clean install of all the elements (UiPath installation, packages, chrome extensions, …) did not resolve the issue.

Could anyone help me with this error, please?

Thank you very much :grinning:

Miguel A.

Hi @miguel-angel.calvo,

Take a look this


Thanks @balupad14

Unfortunately, it doesn’t work. The same output error.

Hi. Problem solved. It was my first project, and i didn’t know that the project ought to be Published first.


Miguel A.

Hi @miguel-angel.calvo
I think your issue is a bug 2018.2
Because older versions didn’t need Publish when running robot.exe -file option.