[bug?] No error dialog through Windows Task Scheduler

Get help for specific problems
User avatar
Posts: 2
Joined: 17 Jun 2025

Adam

Good day,

I am experiencing an issue where there is no error dialog shown when running a batch job through Windows Task Scheduler. However, the dialog error is shown if I run the batch job file manually outside of Task Scheduler.

Task Scheduler History returning the following:

"Task Scheduler successfully completed task "\cloud_sync" , instance "{53c0391a-ef83-4ce1-a335-492874d2d9d1}" , action "C:\Program Files\FreeFileSync\FreeFileSync.exe" with return code 2147942403."

Task History
Task History
Screenshot 2025-06-17 112246.png (49.63 KiB) Viewed 634 times

Any assistance would be greatly appreciated.

Thank you!

P.S. All settings are configured properly as per the FFS topic: https://freefilesync.org/manual.php?topic=schedule-batch-jobs.
User avatar
Posts: 2946
Joined: 22 Aug 2012

Plerry

By default Scheduled Tasks are run as the System user.
The logged-in user does therefore not receive any error messages.
If you don't use "Create Basic Task", but instead "Create task" in the Task Scheduler, you can define under which user credentials a scheduled task will run.
User avatar
Posts: 2
Joined: 17 Jun 2025

Adam

By default Scheduled Tasks are run as the System user.
The logged-in user does therefore not receive any error messages.
If you don't use "Create Basic Task", but instead "Create task" in the Task Scheduler, you can define under which user credentials a scheduled task will run. Plerry, 19 Jun 2025, 01:59
I actually had my user credentials setup properly to run the task; however, I had configured the task with the setting "Run whether user is logged on or not" and once switching this to "Run only when user is logged on" did error dialog prompts resume as intended.

A strange case to have to contend with. Regardless, thank you for your assistance Plerry. :)
User avatar
Site Admin
Posts: 7505
Joined: 9 Dec 2007

Zenju

For the record:
2147942403 = 0x80070003 = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_PATH_NOT_FOUND)

So the error is:
ERROR_PATH_NOT_FOUND = "The system cannot find the path specified."
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

however, I had configured the task with the setting "Run whether user is logged on or not" and once switching this to "Run only when user is logged on" did error dialog prompts resume as intended. Adam, 24 Jun 2025, 01:42
This setting is what dictates if a task uses SYSTEM or not. Checking it uses the SYSTEM account, different than your user account of course, so the reported behavior is seen.

For the record:
2147942403 = 0x80070003 = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_PATH_NOT_FOUND)

So the error is:
ERROR_PATH_NOT_FOUND = "The system cannot find the path specified."
Zenju, 15 Sep 2025, 13:59
This seems odd, because SYSTEM should have access to basically everything, and the path must have been valid if it worked after changes unrelated to the path...
User avatar
Posts: 2946
Joined: 22 Aug 2012

Plerry

This setting is what dictates if a task uses SYSTEM or not. Checking it uses the SYSTEM account, different than your user account of course, so the reported behavior is seen.
If you run a scheduled task under specified user credentials (other than SYSTEM), that task will use the access rights of the specified user, including stored network credentials, and user specific stored drive mappings.
This even if the specified user is not logged in.
This seems odd, because SYSTEM should have access to basically everything,
Although true for local drives, that does not apply to network drives that require user credentials.
User avatar
Posts: 4866
Joined: 11 Jun 2019

xCSxXenon

This seems odd, because SYSTEM should have access to basically everything,
Although true for local drives, that does not apply to network drives that require user credentials. Plerry, 16 Sep 2025, 06:25
This is true. OP didn't specify locations but considering the provided info, this makes sense logically