Need help to schedule a process using task scheduler


#1

Am trying to schedule a job using task scheduler and want to run a job if the user is logged in or not. If I uncheck the option ‘Run only when user is logged in’ it works fine, if I check the option in scheduler whether user is logged in or not. It says completed with no result. Have tried the links provided but issue persists. When checked in event log I see below errors, can anyone help please!!

Log Name: Application
Source: UiPath
Date: 7/13/2017 11:29:25 AM
Event ID: 0
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: XXXX
Description:
{“message”:“System.Exception: Executor start process failed, reason System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n at UiPath.UiSystemClass.OpenInteractiveWindowsSession(String bstrUser, String bstrPassword, UiOpenSessionFlags nFlags, String bstrApplication, String bstrAppArguments, Int32 nDelayMs, Int32 userToken, UiGenericOptions options)\r\n at UiPath.Core.Setup.OpenInteractiveWindowsSession(String username, String password, OpenSessionFlags flags, String application, String arguments, Int32 userToken, Int32 preferredWidth, Int32 preferredHeight, Int32 preferredDepth)\r\n at UiPath.Service.Impl.Executor.StartProcessInSession(Guid executorInstanceId, String username, String password, OpenSessionInfo sessionInfo, IntPtr userToken)\r\n at UiPath.Service.Impl.Executor.<>c__DisplayClass13_0.<b__0>d.MoveNext()”,“level”:“Error”,“timeStamp”:“2017-07-13T11:29:25.7299914+05:30”}
Event Xml:



0
2
0
0x80000000000000

281767
Application
XXXX



{“message”:“System.Exception: Executor start process failed, reason System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))\r\n at UiPath.UiSystemClass.OpenInteractiveWindowsSession(String bstrUser, String bstrPassword, UiOpenSessionFlags nFlags, String bstrApplication, String bstrAppArguments, Int32 nDelayMs, Int32 userToken, UiGenericOptions options)\r\n at UiPath.Core.Setup.OpenInteractiveWindowsSession(String username, String password, OpenSessionFlags flags, String application, String arguments, Int32 userToken, Int32 preferredWidth, Int32 preferredHeight, Int32 preferredDepth)\r\n at UiPath.Service.Impl.Executor.StartProcessInSession(Guid executorInstanceId, String username, String password, OpenSessionInfo sessionInfo, IntPtr userToken)\r\n at UiPath.Service.Impl.Executor.<>c__DisplayClass13_0.<<Start>b__0>d.MoveNext()”,“level”:“Error”,“timeStamp”:“2017-07-13T11:29:25.7299914+05:30”}


#2

Any help on this please!!! Am not able to use Windows Task Scheduler to run a process if the user is NOT logged in to the system.


#3

Hi @Ashok_Chowdary,
Have you tried it by changing the Login to Console: False option available in the Uipath.Settings File?

Regards,
Jiban


#4

Yup already tried that, but no luck. I land at same error in event viewer and last run result(0X1)


#5

can you check you have admin rights available or not


#6

What studio version are you using? We don t support windows task scheduling anymore, for running unattended jobs/workflows you need an Orchestrator server


#7

Hi @Gabriel_Tatu,
May i know what are the issues popping out when we use the Windows scheduler?
I am using the latest version of UiPath Studio and the scheduling feature is not present with that. In case i add schedule in Machine then i will be facing problems?
Please revert back.


#8

as i ve already said, we don`t support this feature anymore. its not reliable and we have a better way and tool of running unattended jobs : Orchestrator


#9

Ya for $20,000 a year. Why not have an Orchestrator Lite for companies that only have a couple bots to help us break in and prove ROI before purchasing Orchestrator?


#11

Any ideea you want to share with us, post it in the Ideas area of the forum. Our Product team is more than happy to assist.
Also, have you tried https://platform.uipath.com ?