Facing issue while running batch file through task scheduler

Hi Team,

We are triggering batch file which is having command to start execution. It’s working successfully when batch file is executed manually and failing through task scheduler.

Project is created in RE framework on queue basis. Please suggest on the mentioned issue.

Regards,
Smitesh

Hi,

Can you share error message if you have?

Regards,

Hi Yochi,

Thanks for your response.

No error message is showing.
Actually when i ran the batch file manually it’s working as expected but same when i am doing in task scheduler then status showing as in running state but process is not working and also assistant is not working when i ran through task scheduler but when i ran batch file at that time assistant working fine.

Hi Smitesh,

Could you please add the screenshot of your code?

For unattended robots and processes, you will need to schedule via Orchestrator only. It was restricted since couple of years.

Hi @marian.platonov

1)I am using attended robots for to run batch file via orchestrator ----> This is working.

2)But when i am using attended robots for to run batch file through task scheduler via orchestrator → Not working through task scheduler.

Any solution for 2nd point?

The following commands are not supported for Windows or Portable projects:

  • UiRobot.exe execute --file “C:\UiPath\Automation\Project.json”

  • UiRobot.exe execute --file “C:\UiPath\Automation\Main.xaml”


“I am using attended robots for to run batch file via orchestrator

I don’t understand how you are doing that. Provide screenshots with the configuration.

Also, for the other approach.


For unattended processes, you need to schedule via Orchestrator with NonProduction/Testing/Unattended runtimes.