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."
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.
[bug?] No error dialog through Windows Task Scheduler
-
- Posts: 2
- Joined: 17 Jun 2025
-
- Posts: 2946
- Joined: 22 Aug 2012
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.
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.
-
- Posts: 2
- Joined: 17 Jun 2025
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.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
A strange case to have to contend with. Regardless, thank you for your assistance Plerry. :)
-
- Site Admin
- Posts: 7505
- Joined: 9 Dec 2007
For the record:
So the error is:
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."
-
- Posts: 4866
- Joined: 11 Jun 2019
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.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 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...For the record:
2147942403 = 0x80070003 = MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_PATH_NOT_FOUND)
So the error is:Zenju, 15 Sep 2025, 13:59ERROR_PATH_NOT_FOUND = "The system cannot find the path specified."
-
- Posts: 2946
- Joined: 22 Aug 2012
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 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.
This even if the specified user is not logged in.
Although true for local drives, that does not apply to network drives that require user credentials.This seems odd, because SYSTEM should have access to basically everything,
-
- Posts: 4866
- Joined: 11 Jun 2019
This is true. OP didn't specify locations but considering the provided info, this makes sense logicallyAlthough true for local drives, that does not apply to network drives that require user credentials. Plerry, 16 Sep 2025, 06:25This seems odd, because SYSTEM should have access to basically everything,