locked
Scheduled Task Error 0x1 RRS feed

  • 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

  • Hi Adeel,

    Check the blog article Scheduled task error 0×1.

    Hope this will help you.

    Thanks

    Monday, May 21, 2012 10:36 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 ?

    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

    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 

    http://social.technet.microsoft.com/Forums/en-US/winserverManagement/thread/9af979f6-796a-4ec0-a244-4e491f9a8b86 

    2008 R2 Scheduled Task returning 0x1 on one system

    http://social.technet.microsoft.com/Forums/en-CA/winserverfiles/thread/73df1459-a8e4-4839-acfd-b163cc66c093


    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 ?

    Monday, May 21, 2012 10:11 AM
  • Hi Adeel,

    Check the blog article Scheduled task error 0×1.

    Hope this will help you.

    Thanks

    Monday, May 21, 2012 10:36 AM
  • Hi Ali,

    Thanks for your information.

     

    I have tested again, but the return code is still “0X1”.


    Adeel Imtiaz


    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

    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.
    Wednesday, February 25, 2015 11:54 AM