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”}