Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Scheduled Task Exit Code

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-01-2008
Rich Young
 
Posts: n/a
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

Reply With Quote
  #2  
Old 04-01-2008
Meinolf Weber
 
Posts: n/a
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
>



Reply With Quote
  #3  
Old 05-01-2008
Rich Young
 
Posts: n/a
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
> >

>
>
>

Reply With Quote
  #4  
Old 05-01-2008
Pegasus \(MVP\)
 
Posts: n/a
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
>> >

>>
>>
>>



Reply With Quote
  #5  
Old 06-01-2008
Rich Young
 
Posts: n/a
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
> >> >
> >>
> >>
> >>

>
>
>

Reply With Quote
  #6  
Old 07-01-2008
Pegasus \(MVP\)
 
Posts: n/a
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
>> >> >
>> >>
>> >>
>> >>

>>
>>
>>



Reply With Quote
  #7  
Old 07-01-2008
Rich Young
 
Posts: n/a
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
> >> >> >
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>

>
>
>

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Scheduled Task Exit Code"
Thread Thread Starter Forum Replies Last Post
Windows Scheduled Task: Unable to start task. 0x80070005: Access is denied. BCU_AJones Windows Software 3 17-01-2014 10:37 AM
The task completed with an exit code of (1) Ikram Active Directory 3 03-09-2009 05:45 AM
Scheduled Task does not run coreymac1222 Windows XP Support 3 06-03-2009 02:06 AM
Task Scheduler Exit Code GMC Windows Server Help 4 21-04-2007 07:51 AM
Scheduled Task error code:The task completed with an exit code of Teo Chee Yang Windows Server Help 7 26-02-2007 06:01 PM


All times are GMT +5.5. The time now is 08:02 AM.