It works fine but the automation starts under the user account that launches the command. According to the instructions I should use the /target argument but I can’t get it to work properly. I’ve tried arguments like
I’ve added both, the domain\UserName as well as UiPath:user=domain\UserName to Windows Credentials. The domain\UserName user also has Log on as batch job privileges.
Does anyone have examples how this should be done?
I was given a solution. You can’t use /executor and /target together because /executor overrides the /target argument. Target should be used like this: /target domain\UserName
@esa.andsten - I am using below command on cmd command prompt - but nothing happens.
Please suggest steps how to invoke this through command line.
Note -I do not have UI Robot.exe . All I have is the Ui Path Studio.exe
You should have UiRobot.exe if you have a working installation. Can you see UiRobot.exe process running in Windows Task Manager when you have UiPathStudio open?
Topshelf.HostFactory Error: 0 : An exception occurred creating the host, Topshelf.HostConfigurationException: The service was not properly configured:
[Failure] Command Line An unknown command-line option was found: DEFINE: file =
C:\Users\Administrator\Documents\UiPath\test1\Main.xaml
[Success] Name UiRobotSvc
[Success] DisplayName UiPath Robot
[Success] Description UiPath Robot Service
[Success] ServiceName UiRobotSvc
at Topshelf.Configurators.ValidateConfigurationResult.CompileResults(IEnumerable`1 results)
at Topshelf.HostFactory.New(Action`1 configureCallback)
The file ‘Main.xaml’ is definitely in that location!
I had a similar issue where I didn’t have uirobot.exe This was when I upgraded from 2016.2 to 2017.1
The solution was to completely remove uipathstudio (uninstall from control panel and then remove all files from profile etc) as I found the uninstall does not delete everything it should. Once reinstalled, I had all the files. It may not be relevent in your case but thought I should share my experience.
@eandrade
I’m using UiRobot.exe /file:“C:\Users\Documents\UiPath\RunAsCmd\Main.xaml” /input:“{‘arg1’:‘hello’}”.
How can i use the arg1 value inside the workflow ? Is there any specific task to get arg1 value ?
1.path of the ui robot.exe is CORRECT
2.path of the XAML file is CORRECT
3.uirobot service is RUNNING
but stillgetting invalid command line error any help ?
tried , still the same “invalid command”
u have given - file instad of /file , which was my way of giving , but tried both ways. still the same.
system is a 32 bit system would it be because of that ?
nono , please do not devetaite the topic. the problem is not command line. that’s what I mentioned. everything is working perfect in some other system. in this system also am able to develop and run in studio but not from commad line.
I know this may seem a silly question but have you checked that is actually where the Robot.exe file is? over the course of some of the recent updates some people have versions where the robot .exe file is located in the UiPath Studio file as you have it above, but in others is can be found in C:\Program Files (x86)\UiPath Platform\UiRobot.exe - the reason i say this is that you have said it works fine in another system, and the robot.exe file may be in the UiPath Studio folder in the other system, but in the UiPath Platform folder in the system you are now trying it in.
yea everything was fine. had a call with ui path team also. but nothing worked. they said this method of calling work flow is not advocated… so we had to drop… !!