Results 1 to 7 of 7

Thread: Scheduled Task Exit Code

  1. #1
    Rich Young Guest

    Scheduled Task Exit Code

    I have created a scheduked task that runs a batch file once a day. When I
    run the batch manually, it works perfectly. However, when I run it through
    the task scheduler, I can not tell if it runs properly. Here is the entry in
    the Task Scheduler log:

    "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    Started 1/3/2008 11:30:00 PM
    "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    Finished 1/3/2008 11:30:00 PM
    Result: The task completed with an exit code of (801).

    I have searched both the internet and this forum but can not find anything
    that describes exit code 801. What I need to know is what that code means
    and how to correct it. Any insight anyone can provide would be greatly
    appreciated.

    Thanks! Rich

  2. #2
    Meinolf Weber Guest

    Re: Scheduled Task Exit Code

    Hello Rich,

    Exit codes can also depend on the job you are running. So can you post the
    task itself?

    Best regards

    Meinolf Weber
    Disclaimer: This posting is provided "AS IS" with no warranties, and confers
    no rights.
    ** Please do NOT email, only reply to Newsgroups
    ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm

    > I have created a scheduked task that runs a batch file once a day.
    > When I run the batch manually, it works perfectly. However, when I
    > run it through the task scheduler, I can not tell if it runs properly.
    > Here is the entry in the Task Scheduler log:
    >
    > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > Started 1/3/2008 11:30:00 PM
    > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > Finished 1/3/2008 11:30:00 PM
    > Result: The task completed with an exit code of (801).
    > I have searched both the internet and this forum but can not find
    > anything that describes exit code 801. What I need to know is what
    > that code means and how to correct it. Any insight anyone can provide
    > would be greatly appreciated.
    >
    > Thanks! Rich
    >




  3. #3
    Rich Young Guest

    Re: Scheduled Task Exit Code

    I figure this might be more info than you want but here it is:

    Name WCFOR2008_SUBM_CALC
    Schedule At 11:30 PM every day, starting 1/3/2008
    Next Run Time 1/4/2008 11:30:00 PM
    Last Run Time 1/3/2008 11:30:00 PM
    Status [Blank]
    Last Result 0x801
    Created ryoung

    Task Tab
    Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
    Start in C:\Documents and Settings\ryoung\Desktop
    Run as FOS\ryoung
    Run only if logged on - Not checked
    Enable (scheduled task runs at specified time) - Is checked

    Schedule Tab
    Schedule Task Daily
    Start time 11:30 PM
    Schedule Task Daily Every 1 Day

    Settings Tab
    Delete the task if it not scheduled to run again - Not checked
    Stop the task if it runs for 72 hours 0 minutes - Is checked
    Idle time - Everything in this the area is not checked
    Power Management - Everything in this the area is not checked

    Security Tab
    Groups or users Administrators - I belong to this group
    SYSTEM
    Permissions for Administrators
    Full Control Allow
    Modify Allow
    Read & Execute Allow
    Read & Execute Allow
    Write Allow
    Special Permissions Greyed Out


    "Meinolf Weber" wrote:

    > Hello Rich,
    >
    > Exit codes can also depend on the job you are running. So can you post the
    > task itself?
    >
    > Best regards
    >
    > Meinolf Weber
    > Disclaimer: This posting is provided "AS IS" with no warranties, and confers
    > no rights.
    > ** Please do NOT email, only reply to Newsgroups
    > ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm
    >
    > > I have created a scheduked task that runs a batch file once a day.
    > > When I run the batch manually, it works perfectly. However, when I
    > > run it through the task scheduler, I can not tell if it runs properly.
    > > Here is the entry in the Task Scheduler log:
    > >
    > > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > > Started 1/3/2008 11:30:00 PM
    > > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > > Finished 1/3/2008 11:30:00 PM
    > > Result: The task completed with an exit code of (801).
    > > I have searched both the internet and this forum but can not find
    > > anything that describes exit code 801. What I need to know is what
    > > that code means and how to correct it. Any insight anyone can provide
    > > would be greatly appreciated.
    > >
    > > Thanks! Rich
    > >

    >
    >
    >


  4. #4
    Pegasus \(MVP\) Guest

    Re: Scheduled Task Exit Code

    What exactly do you have in the file
    WCFOR2008_SUBM_CALC.BAT?
    That's where the exit code comes from!


    "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com...
    >I figure this might be more info than you want but here it is:
    >
    > Name WCFOR2008_SUBM_CALC
    > Schedule At 11:30 PM every day, starting 1/3/2008
    > Next Run Time 1/4/2008 11:30:00 PM
    > Last Run Time 1/3/2008 11:30:00 PM
    > Status [Blank]
    > Last Result 0x801
    > Created ryoung
    >
    > Task Tab
    > Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
    > Start in C:\Documents and Settings\ryoung\Desktop
    > Run as FOS\ryoung
    > Run only if logged on - Not checked
    > Enable (scheduled task runs at specified time) - Is checked
    >
    > Schedule Tab
    > Schedule Task Daily
    > Start time 11:30 PM
    > Schedule Task Daily Every 1 Day
    >
    > Settings Tab
    > Delete the task if it not scheduled to run again - Not checked
    > Stop the task if it runs for 72 hours 0 minutes - Is checked
    > Idle time - Everything in this the area is not checked
    > Power Management - Everything in this the area is not checked
    >
    > Security Tab
    > Groups or users Administrators - I belong to this group
    > SYSTEM
    > Permissions for Administrators
    > Full Control Allow
    > Modify Allow
    > Read & Execute Allow
    > Read & Execute Allow
    > Write Allow
    > Special Permissions Greyed Out
    >
    >
    > "Meinolf Weber" wrote:
    >
    >> Hello Rich,
    >>
    >> Exit codes can also depend on the job you are running. So can you post
    >> the
    >> task itself?
    >>
    >> Best regards
    >>
    >> Meinolf Weber
    >> Disclaimer: This posting is provided "AS IS" with no warranties, and
    >> confers
    >> no rights.
    >> ** Please do NOT email, only reply to Newsgroups
    >> ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm
    >>
    >> > I have created a scheduked task that runs a batch file once a day.
    >> > When I run the batch manually, it works perfectly. However, when I
    >> > run it through the task scheduler, I can not tell if it runs properly.
    >> > Here is the entry in the Task Scheduler log:
    >> >
    >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    >> > Started 1/3/2008 11:30:00 PM
    >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    >> > Finished 1/3/2008 11:30:00 PM
    >> > Result: The task completed with an exit code of (801).
    >> > I have searched both the internet and this forum but can not find
    >> > anything that describes exit code 801. What I need to know is what
    >> > that code means and how to correct it. Any insight anyone can provide
    >> > would be greatly appreciated.
    >> >
    >> > Thanks! Rich
    >> >

    >>
    >>
    >>




  5. #5
    Rich Young Guest

    Re: Scheduled Task Exit Code

    I run some code that executes some commands out of an application call Cognos
    Finance. Here is the contents of the batch file:

    "D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER ryoung
    /PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
    WCFORLC2008 /NI


    That's it. Not much in there.

    Thanks again for your help!

    Rich


    "Pegasus (MVP)" wrote:

    > What exactly do you have in the file
    > WCFOR2008_SUBM_CALC.BAT?
    > That's where the exit code comes from!
    >
    >
    > "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    > news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com...
    > >I figure this might be more info than you want but here it is:
    > >
    > > Name WCFOR2008_SUBM_CALC
    > > Schedule At 11:30 PM every day, starting 1/3/2008
    > > Next Run Time 1/4/2008 11:30:00 PM
    > > Last Run Time 1/3/2008 11:30:00 PM
    > > Status [Blank]
    > > Last Result 0x801
    > > Created ryoung
    > >
    > > Task Tab
    > > Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
    > > Start in C:\Documents and Settings\ryoung\Desktop
    > > Run as FOS\ryoung
    > > Run only if logged on - Not checked
    > > Enable (scheduled task runs at specified time) - Is checked
    > >
    > > Schedule Tab
    > > Schedule Task Daily
    > > Start time 11:30 PM
    > > Schedule Task Daily Every 1 Day
    > >
    > > Settings Tab
    > > Delete the task if it not scheduled to run again - Not checked
    > > Stop the task if it runs for 72 hours 0 minutes - Is checked
    > > Idle time - Everything in this the area is not checked
    > > Power Management - Everything in this the area is not checked
    > >
    > > Security Tab
    > > Groups or users Administrators - I belong to this group
    > > SYSTEM
    > > Permissions for Administrators
    > > Full Control Allow
    > > Modify Allow
    > > Read & Execute Allow
    > > Read & Execute Allow
    > > Write Allow
    > > Special Permissions Greyed Out
    > >
    > >
    > > "Meinolf Weber" wrote:
    > >
    > >> Hello Rich,
    > >>
    > >> Exit codes can also depend on the job you are running. So can you post
    > >> the
    > >> task itself?
    > >>
    > >> Best regards
    > >>
    > >> Meinolf Weber
    > >> Disclaimer: This posting is provided "AS IS" with no warranties, and
    > >> confers
    > >> no rights.
    > >> ** Please do NOT email, only reply to Newsgroups
    > >> ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm
    > >>
    > >> > I have created a scheduked task that runs a batch file once a day.
    > >> > When I run the batch manually, it works perfectly. However, when I
    > >> > run it through the task scheduler, I can not tell if it runs properly.
    > >> > Here is the entry in the Task Scheduler log:
    > >> >
    > >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > >> > Started 1/3/2008 11:30:00 PM
    > >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > >> > Finished 1/3/2008 11:30:00 PM
    > >> > Result: The task completed with an exit code of (801).
    > >> > I have searched both the internet and this forum but can not find
    > >> > anything that describes exit code 801. What I need to know is what
    > >> > that code means and how to correct it. Any insight anyone can provide
    > >> > would be greatly appreciated.
    > >> >
    > >> > Thanks! Rich
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >


  6. #6
    Pegasus \(MVP\) Guest

    Re: Scheduled Task Exit Code

    Fine. Now add an extra line and modify this line like so:

    echo %date% %time% User=%UserName% >>c:\test.log
    "D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER ryoung
    /PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
    WCFORLC2008 /NI 1>>c:\test.log 2>>&1

    Run the task again under the Task Scheduler, then examin
    c:\test.log. It will probably tell you what's wrong.


    "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    news:0A7D6DFE-1F70-4BE5-B735-3A8928C2C55E@microsoft.com...
    >I run some code that executes some commands out of an application call
    >Cognos
    > Finance. Here is the contents of the batch file:
    >
    > "D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER
    > ryoung
    > /PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
    > WCFORLC2008 /NI
    >
    >
    > That's it. Not much in there.
    >
    > Thanks again for your help!
    >
    > Rich
    >
    >
    > "Pegasus (MVP)" wrote:
    >
    >> What exactly do you have in the file
    >> WCFOR2008_SUBM_CALC.BAT?
    >> That's where the exit code comes from!
    >>
    >>
    >> "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    >> news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com...
    >> >I figure this might be more info than you want but here it is:
    >> >
    >> > Name WCFOR2008_SUBM_CALC
    >> > Schedule At 11:30 PM every day, starting 1/3/2008
    >> > Next Run Time 1/4/2008 11:30:00 PM
    >> > Last Run Time 1/3/2008 11:30:00 PM
    >> > Status [Blank]
    >> > Last Result 0x801
    >> > Created ryoung
    >> >
    >> > Task Tab
    >> > Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
    >> > Start in C:\Documents and Settings\ryoung\Desktop
    >> > Run as FOS\ryoung
    >> > Run only if logged on - Not checked
    >> > Enable (scheduled task runs at specified time) - Is checked
    >> >
    >> > Schedule Tab
    >> > Schedule Task Daily
    >> > Start time 11:30 PM
    >> > Schedule Task Daily Every 1 Day
    >> >
    >> > Settings Tab
    >> > Delete the task if it not scheduled to run again - Not checked
    >> > Stop the task if it runs for 72 hours 0 minutes - Is checked
    >> > Idle time - Everything in this the area is not checked
    >> > Power Management - Everything in this the area is not checked
    >> >
    >> > Security Tab
    >> > Groups or users Administrators - I belong to this group
    >> > SYSTEM
    >> > Permissions for Administrators
    >> > Full Control Allow
    >> > Modify Allow
    >> > Read & Execute Allow
    >> > Read & Execute Allow
    >> > Write Allow
    >> > Special Permissions Greyed Out
    >> >
    >> >
    >> > "Meinolf Weber" wrote:
    >> >
    >> >> Hello Rich,
    >> >>
    >> >> Exit codes can also depend on the job you are running. So can you post
    >> >> the
    >> >> task itself?
    >> >>
    >> >> Best regards
    >> >>
    >> >> Meinolf Weber
    >> >> Disclaimer: This posting is provided "AS IS" with no warranties, and
    >> >> confers
    >> >> no rights.
    >> >> ** Please do NOT email, only reply to Newsgroups
    >> >> ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm
    >> >>
    >> >> > I have created a scheduked task that runs a batch file once a day.
    >> >> > When I run the batch manually, it works perfectly. However, when I
    >> >> > run it through the task scheduler, I can not tell if it runs
    >> >> > properly.
    >> >> > Here is the entry in the Task Scheduler log:
    >> >> >
    >> >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    >> >> > Started 1/3/2008 11:30:00 PM
    >> >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    >> >> > Finished 1/3/2008 11:30:00 PM
    >> >> > Result: The task completed with an exit code of (801).
    >> >> > I have searched both the internet and this forum but can not find
    >> >> > anything that describes exit code 801. What I need to know is what
    >> >> > that code means and how to correct it. Any insight anyone can
    >> >> > provide
    >> >> > would be greatly appreciated.
    >> >> >
    >> >> > Thanks! Rich
    >> >> >
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  7. #7
    Rich Young Guest

    Re: Scheduled Task Exit Code

    I'll give that a shot and will report back. Thanks!


    "Pegasus (MVP)" wrote:

    > Fine. Now add an extra line and modify this line like so:
    >
    > echo %date% %time% User=%UserName% >>c:\test.log
    > "D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER ryoung
    > /PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
    > WCFORLC2008 /NI 1>>c:\test.log 2>>&1
    >
    > Run the task again under the Task Scheduler, then examin
    > c:\test.log. It will probably tell you what's wrong.
    >
    >
    > "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    > news:0A7D6DFE-1F70-4BE5-B735-3A8928C2C55E@microsoft.com...
    > >I run some code that executes some commands out of an application call
    > >Cognos
    > > Finance. Here is the contents of the batch file:
    > >
    > > "D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER
    > > ryoung
    > > /PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
    > > WCFORLC2008 /NI
    > >
    > >
    > > That's it. Not much in there.
    > >
    > > Thanks again for your help!
    > >
    > > Rich
    > >
    > >
    > > "Pegasus (MVP)" wrote:
    > >
    > >> What exactly do you have in the file
    > >> WCFOR2008_SUBM_CALC.BAT?
    > >> That's where the exit code comes from!
    > >>
    > >>
    > >> "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message
    > >> news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com...
    > >> >I figure this might be more info than you want but here it is:
    > >> >
    > >> > Name WCFOR2008_SUBM_CALC
    > >> > Schedule At 11:30 PM every day, starting 1/3/2008
    > >> > Next Run Time 1/4/2008 11:30:00 PM
    > >> > Last Run Time 1/3/2008 11:30:00 PM
    > >> > Status [Blank]
    > >> > Last Result 0x801
    > >> > Created ryoung
    > >> >
    > >> > Task Tab
    > >> > Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
    > >> > Start in C:\Documents and Settings\ryoung\Desktop
    > >> > Run as FOS\ryoung
    > >> > Run only if logged on - Not checked
    > >> > Enable (scheduled task runs at specified time) - Is checked
    > >> >
    > >> > Schedule Tab
    > >> > Schedule Task Daily
    > >> > Start time 11:30 PM
    > >> > Schedule Task Daily Every 1 Day
    > >> >
    > >> > Settings Tab
    > >> > Delete the task if it not scheduled to run again - Not checked
    > >> > Stop the task if it runs for 72 hours 0 minutes - Is checked
    > >> > Idle time - Everything in this the area is not checked
    > >> > Power Management - Everything in this the area is not checked
    > >> >
    > >> > Security Tab
    > >> > Groups or users Administrators - I belong to this group
    > >> > SYSTEM
    > >> > Permissions for Administrators
    > >> > Full Control Allow
    > >> > Modify Allow
    > >> > Read & Execute Allow
    > >> > Read & Execute Allow
    > >> > Write Allow
    > >> > Special Permissions Greyed Out
    > >> >
    > >> >
    > >> > "Meinolf Weber" wrote:
    > >> >
    > >> >> Hello Rich,
    > >> >>
    > >> >> Exit codes can also depend on the job you are running. So can you post
    > >> >> the
    > >> >> task itself?
    > >> >>
    > >> >> Best regards
    > >> >>
    > >> >> Meinolf Weber
    > >> >> Disclaimer: This posting is provided "AS IS" with no warranties, and
    > >> >> confers
    > >> >> no rights.
    > >> >> ** Please do NOT email, only reply to Newsgroups
    > >> >> ** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm
    > >> >>
    > >> >> > I have created a scheduked task that runs a batch file once a day.
    > >> >> > When I run the batch manually, it works perfectly. However, when I
    > >> >> > run it through the task scheduler, I can not tell if it runs
    > >> >> > properly.
    > >> >> > Here is the entry in the Task Scheduler log:
    > >> >> >
    > >> >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > >> >> > Started 1/3/2008 11:30:00 PM
    > >> >> > "WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
    > >> >> > Finished 1/3/2008 11:30:00 PM
    > >> >> > Result: The task completed with an exit code of (801).
    > >> >> > I have searched both the internet and this forum but can not find
    > >> >> > anything that describes exit code 801. What I need to know is what
    > >> >> > that code means and how to correct it. Any insight anyone can
    > >> >> > provide
    > >> >> > would be greatly appreciated.
    > >> >> >
    > >> >> > Thanks! Rich
    > >> >> >
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


Similar Threads

  1. Replies: 3
    Last Post: 17-01-2014, 10:37 AM
  2. The task completed with an exit code of (1)
    By Ikram in forum Active Directory
    Replies: 3
    Last Post: 03-09-2009, 05:45 AM
  3. Scheduled Task does not run
    By coreymac1222 in forum Windows XP Support
    Replies: 3
    Last Post: 06-03-2009, 02:06 AM
  4. Task Scheduler Exit Code
    By GMC in forum Windows Server Help
    Replies: 4
    Last Post: 21-04-2007, 07:51 AM
  5. Scheduled Task error code:The task completed with an exit code of
    By Teo Chee Yang in forum Windows Server Help
    Replies: 7
    Last Post: 26-02-2007, 06:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,710,825,735.29249 seconds with 16 queries