Run a bot from command line - error


#1

I tried to run the bot from the command line using the following command

“C:\Users\skini.KGFSL\AppData\Local\UiPath\UiRobot.exe” file:“Main.xaml”

but getting following error

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

The Main.xaml file is very much present in the folder


#2

#3

No it is not working, whats wrong with the syntax ?


#4

You have to use bellow commands:-
“C:\Program Files (x86)\UiPath\Studio\UiRobot.exe” /file:“C:\Users\XXX\Documents\UiPath\FindRowNumber\Main.xaml”


#5

Instead of giving file name you have to pass the entire file path…


#6

I have tried that also, but same error.


#7

What error you are getting??


#8

I have checked the log also, not able to make out anything from the log


#9

In my machine UIPath is installed in Program Files, so the path is
C:\Program Files\UiPath\Studio\UiRobot.exe


#10

send your command line argument what you have passed i will change it and send back to you…


#11

and where is your workflow file path??


#12

C:\Users<username>\Documents\UiPath\IMS>“C:\Users<username>\AppData\Local\UiPath\UiRobot.exe” file:“Main.xaml”

the file Main.xaml is in the folder from which I am running this command ie C:\Users<username>\Documents\UiPath\IMS


#13

C:\Users\AppData\Local\UiPath\UiRobot.exe \file:“C:\Users\Documents\UiPath\IMS\Main.xaml”


#14

no luck, same error