Answered by:
Scheduled Task Error 0x1

Question
-
Hi,
We used scheduled task to start EA server, so that the run-server.bat will be triggered by scheduler.
Currently the return result of this scheduled task is 0x1, which means that “an incorrect function was called or an unknown function was called”.
Could you please help me to resolve this issue.
Thanks
Adeel Imtiaz
Adeel Imtiaz
Monday, May 21, 2012 6:46 AM
Answers
-
-
Dear Santosh,
Thank you for your mail.
But still do not understand why this error occur and how to get out of it.
Thanks
Adeel Imtiaz
This 0x1 error may occur if scheduled job files go corrupt due to some reason. there may be other causes as well such as task scheduler service got stopped abruptly or UAC is enabled on Server if it's 2008/R2 etc...
Couple of things which you can try...
firstly,
- Delete the existing scheduled tasks (backup the tasks before deleting)
- Reboot the server
- Recreate them again
- Make sure Task Scheduler service and its dependent services are running. Task Scheduler service depends on Remote Procedure Call (RPC), DCOM Server Process Launcher and RPC Endpoint Mapper services.
Secondly,
Run sfc /scannow on problematic server to make sure all the OS files are intact and in good condition.
A UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?- Marked as answer by Malik Adeel Imtiaz Monday, May 28, 2012 11:51 AM
Monday, May 21, 2012 10:11 AM -
Hello Malik,
The steps Santosh described are safe to execute, assuming you know how to re-create the tasks. You should check if it is possible to reboot the server to limit the effect on the users. Checking the services is also completely safe to do.
Jaap Brasser
http://www.jaapbrasser.com- Marked as answer by Boo_MonstersInc Thursday, May 31, 2012 4:27 AM
Wednesday, May 23, 2012 7:39 AM
All replies
-
Hi,
See if any of the below discussions helps...
Scheduled task error 0x1 - Windows Server 2003 R2
2008 R2 Scheduled Task returning 0x1 on one system
A UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?Monday, May 21, 2012 7:26 AM -
Dear Santosh,
Thank you for your mail.
But still do not understand why this error occur and how to get out of it.
Thanks
Adeel Imtiaz
Monday, May 21, 2012 8:26 AM -
Dear Santosh,
Thank you for your mail.
But still do not understand why this error occur and how to get out of it.
Thanks
Adeel Imtiaz
This 0x1 error may occur if scheduled job files go corrupt due to some reason. there may be other causes as well such as task scheduler service got stopped abruptly or UAC is enabled on Server if it's 2008/R2 etc...
Couple of things which you can try...
firstly,
- Delete the existing scheduled tasks (backup the tasks before deleting)
- Reboot the server
- Recreate them again
- Make sure Task Scheduler service and its dependent services are running. Task Scheduler service depends on Remote Procedure Call (RPC), DCOM Server Process Launcher and RPC Endpoint Mapper services.
Secondly,
Run sfc /scannow on problematic server to make sure all the OS files are intact and in good condition.
A UNIVERSE without WINDOWS is CHAOS !
This posting is provided "AS IS" with no warranties or guarantees and confers no rights.
About Me ?- Marked as answer by Malik Adeel Imtiaz Monday, May 28, 2012 11:51 AM
Monday, May 21, 2012 10:11 AM -
-
Hi Ali,
Thanks for your information.
I have tested again, but the return code is still “0X1”.
Adeel Imtiaz
- Edited by Malik Adeel Imtiaz Wednesday, May 23, 2012 4:59 AM
Wednesday, May 23, 2012 4:49 AM -
Dear Santosh,
Its a production server. If i perform above steps do you think its safe to perform on Production Server.
Thanks
Adeel
Adeel Imtiaz
Wednesday, May 23, 2012 7:28 AM -
Hello Malik,
The steps Santosh described are safe to execute, assuming you know how to re-create the tasks. You should check if it is possible to reboot the server to limit the effect on the users. Checking the services is also completely safe to do.
Jaap Brasser
http://www.jaapbrasser.com- Marked as answer by Boo_MonstersInc Thursday, May 31, 2012 4:27 AM
Wednesday, May 23, 2012 7:39 AM -
In my case i got this error trying to run a bat, but forgot to set the proper ntfs rights on the batch files them self.
- Proposed as answer by mislam01.hotmail.com Wednesday, August 3, 2016 5:36 PM
- Unproposed as answer by mislam01.hotmail.com Wednesday, August 3, 2016 5:36 PM
Wednesday, February 25, 2015 11:54 AM