Hello guys. So I started to face a problem, where the task that I created in task scheduler started not to work. Basically, I had 2 tasks scheduled, using .bat file, that invokes a process in UiPath Assistant. Recently, to be exact sure, on last friday, the processes started throwing errors, that look like this:
In the event properties I can see this error message: Task Scheduler failed to launch action “C:\Windows\SYSTEM32\cmd.exe” in instance “{74b5538e-fd6a-4f8f-8f42-0f693c96bd4e}” of task “\EbayAuthRefreshV2”. Additional Data: Error Value: 2147942405.
The action, that the scheduled job is trying to invoke, is a .bat file, that looks like this: @echo off
cd “C:\Users\ebayrpa\Desktop”
start “” “Ebay.pasiulymai - UiPath.lnk”
exit
As i said, this thing worked for me like for a year. But since last friday, i keep getting the same error over and over again. It doesnt even work when trying to start a NUPGK file through UiRobot.Exe .bat file. What can I do now? Do you guys have any suggestions?
Thanks for the response. I’ve checked everything of ur written list.
Task scheduler has every permessions set to it.
The .bat file works manually. It boots up the .lnk file of the UiPath Assistant process.
The .nupkg file works to, if i press it manually.
Checked and they all look good.
Deleted the task and imported the XML file of it, started it, but still the same thing. After then, i completely deleted the task and created a new one, just to it would start the .bat file, but still the same…
Try running the scheduled task from the command line to see if it reveals more details:
Open Command Prompt (Run as Administrator)**.
Run this command:
cmd
schtasks /run /tn “EbayAuthRefreshV2”
If it fails, check the error message.
If it gives an Access Denied error, it’s likely an issue with the user permissions or execution context
Change the Execution Context (User Account)
Try running the task as a different user:
Open Task Scheduler → Right-click your task → Properties.
Under General → Security Options:
Select “Run whether user is logged on or not”.
Click Change User or Group→ Use SYSTEM or another admin account.
Check “Run with highest privileges”.
3.Re-run the task.
When trying to run the task with different user, i Put on SYSTEM, the task scheduler didint throw any errors, BUT, the action, which is the .bat file didint start. What i mean is, that the process in UiPath didint start att all, it wasnt triggered with the .bat file.