Task scheduler to start published project problem

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?

1.Check Task Scheduler Permissions
2. Test .bat Execution Manually
3. Run .nupkg Directly Using UiRobot
4. Check Execution Policy & File Permissions.
If nothing works:

  1. Delete the task from Task Scheduler.
  2. Create a new task from scratch, ensuring all settings are correct.
1 Like

Thanks for the response. I’ve checked everything of ur written list.

  1. Task scheduler has every permessions set to it.
  2. The .bat file works manually. It boots up the .lnk file of the UiPath Assistant process.
  3. The .nupkg file works to, if i press it manually.
  4. Checked and they all look good.
  5. 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…

Use schtasks to Manually Run the Task

Try running the scheduled task from the command line to see if it reveals more details:

  1. Open Command Prompt (Run as Administrator)**.
  2. Run this command:

cmd

schtasks /run /tn “EbayAuthRefreshV2”

  1. 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:

  1. Open Task Scheduler → Right-click your task → Properties.
  2. 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.

Please check let me know

1 Like

Thanks again for the response :slight_smile:

After running

i got this answer:

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.

Hi,
1/ Was there any UiPath update installed?
2/ Any error in Event Viewer?

Cheers

1 Like

Hello and thanks for the response.

  1. No, I dont think so.
  2. Noo, there are non corealating to the EventID from task scheduler.

To eliminate the error source I would recommend to remove this line from batch file

If problem persists → task scheduler problems
If problem disappears → UiPath problem

Cheers

1 Like

Ok, but then how will the .bat file start the .lnk file of my automation?

Ok, I removed the line, and got no errors in task scheduler, but I didin’t see the CMD file at least starting. Neither the .bat file

Okay, so problem is not in task scheduler itself, but in UiPath.

Can you share the “Security options” settings from “General” tab of the scheduled task?

Cheers