Task Schedule Failed
-
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Ideas:
1- try using single or double quotes around the path, simple way to get the "proper" path is sometimes to use tab-completion2- if the above doesn't work, maybe try having your scheduled task call a batch or .cmd file (or powershell) which invokes the executable
-
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.
-
@notverypunny said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Ideas:
1- try using single or double quotes around the path, simple way to get the "proper" path is sometimes to use tab-completion2- if the above doesn't work, maybe try having your scheduled task call a batch or .cmd file (or powershell) which invokes the executable
Quotes around the path and working directory. Yes
-
@Obsolesce said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.
what do you mean "clean it up before posting" ?
-
Tried the Quotes around the command , same error.
-
@WrCombs said in Task Schedule Failed:
Event Viewer shows:
Redacted is just the name of the POS.
I would focus on solving this. Guessing that it's some form of rights issue or DLLs that aren't accessible / registered for this user.
-
@Danp said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
Event Viewer shows:
Redacted is just the name of the POS.
I would focus on solving this. Guessing that it's some form of rights issue or DLLs that aren't accessible / registered for this user.
Originally I thought it was because the author of the task was set to a different store completely. But it's been working fine up until they upgraded to windows 11 without our knowledge.
So i re-wrote the Task as the current user, and still get the same error so it's not an author issue.
-
@notverypunny said in Task Schedule Failed:
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
This statement is confusing to me. Are you not able to navigate to this directory in CMD or Explorer?
-
@Danp said in Task Schedule Failed:
@notverypunny said in Task Schedule Failed:
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
This statement is confusing to me. Are you not able to navigate to this directory in CMD or Explorer?
I missed the " " on the end of the path in CMD the first time
-
@WrCombs Does the software run correctly via command line when you are logged in as the admin user?
-
@Danp said in Task Schedule Failed:
@WrCombs Does the software run correctly via command line when you are logged in as the admin user?
Yes, it does - and even better, History / Task logging shows it's working
-
At this point I'm just going to watch it, Turned on History and it shows that it is running successfully when I manually run it.
-
@WrCombs said in Task Schedule Failed:
@Obsolesce said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.
what do you mean "clean it up before posting" ?
As in censor sensitive info before posting it publicly.
Having the xml export of the scheduled task will show us exactly all configured options and settings of the scheduled task.
And yes, it would have shown that you were missing quotes in the command / paths.
-
@Obsolesce said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
@Obsolesce said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Export the scheduled task as xml so we can get a clearer picture of what it is. Clean it up before posting.
what do you mean "clean it up before posting" ?
As in censor sensitive info before posting it publicly.
Having the xml export of the scheduled task will show us exactly all configured options and settings of the scheduled task.
And yes, it would have shown that you were missing quotes in the command / paths.
Create basic task auto puts in the quotations when you select start a program.
-
try putting the switches in the 'arguments' field of the Action tab.