dbTalk Databases Forums  

"Failed" Job runs DTS package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss "Failed" Job runs DTS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default "Failed" Job runs DTS package - 05-25-2006 , 01:53 PM






I have a DTS Package that drops local tables, recreates them and then
pulls new data from a database on a different server. At first I
couldn't get the package to run as a scheduled job at all I read KB
article 269074 and made sure the job would run on the server and that
SQL server agent runs as a domain account with sysadmin permissions
both locally and on the other server.
Now the DTS Package completes, but the Job says it failed. I verified
it the DTS package ran. (Event viewer also shows DTS package
successfully executing but the Job failing). When manually starting
the job from Enterprise Manager I get the same behavior. The job fails
even though the DTS package runs.
There is only one step in the job and on success is set to 'quite
with success' and on failure set to 'quit with failure'.
Here are the job history details (on example, they're all basically
the same):
Step ID 0 (Job Outcome), result - failed:
The job failed. The Job was invoked by Schedule 58
(DTS_ServerBToServerA 2). The last step to run was step 1
(DTS_ServerBToServerA 2).
Step ID 1 DTS_ServerBToServerA 2, result - failed:
Executed as user: DOMAIN\Administrator. ...:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart:
DTSStep_DTSDataPumpTask_1 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 1000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2180 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2180 DTSRun OnFinish:
DTSStep_DTSDataPumpTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_5 DTSRun OnFinish: DTSStep_D... Process
Exit Code 1. The step failed.

In the event viewer there are no warnings other than for
SQLSERVERAGENT, event ID 208, notification of failed job which
immediately follows the information event "The execution of the
following DTS Package succeeded"
Any ideas? I'd really appreciates some help...I'm pretty new to
SQL. One other thing I've noticed is that there's a newer service
pack for SQL. I'm using SQL Server 2000 8.00.760 Service Pack 3 on a
Microsoft Windows 2000 Server v. 5.0.2195 SP 4.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: "Failed" Job runs DTS package - 05-25-2006 , 02:48 PM






Hello mahalie (AT) gmail (DOT) com,

I know you have read the article about Jobs and DTS but one thing you did
not mention is the job owner? Anyways that said. It looks as though the
job gets so far and fails.

Error Message 208 in TSQL would be unknown object.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
I have a DTS Package that drops local tables, recreates them and then
pulls new data from a database on a different server. At first I
couldn't get the package to run as a scheduled job at all I read KB
article 269074 and made sure the job would run on the server and that
SQL server agent runs as a domain account with sysadmin permissions
both locally and on the other server.
Now the DTS Package completes, but the Job says it failed. I verified
it the DTS package ran. (Event viewer also shows DTS package
successfully executing but the Job failing). When manually starting
the job from Enterprise Manager I get the same behavior. The job
fails
even though the DTS package runs.
There is only one step in the job and on success is set to 'quite
with success' and on failure set to 'quit with failure'.
Here are the job history details (on example, they're all basically
the same):
Step ID 0 (Job Outcome), result - failed:
The job failed. The Job was invoked by Schedule 58
(DTS_ServerBToServerA 2). The last step to run was step 1
(DTS_ServerBToServerA 2).
Step ID 1 DTS_ServerBToServerA 2, result - failed:
Executed as user: DOMAIN\Administrator. ...:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart:
DTSStep_DTSDataPumpTask_1 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 1000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2180 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2180 DTSRun OnFinish:
DTSStep_DTSDataPumpTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_5 DTSRun OnFinish: DTSStep_D... Process
Exit Code 1. The step failed.
In the event viewer there are no warnings other than for
SQLSERVERAGENT, event ID 208, notification of failed job which
immediately follows the information event "The execution of the
following DTS Package succeeded"
Any ideas? I'd really appreciates some help...I'm pretty new to
SQL. One other thing I've noticed is that there's a newer service
pack for SQL. I'm using SQL Server 2000 8.00.760 Service Pack 3 on a
Microsoft Windows 2000 Server v. 5.0.2195 SP 4.



Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: "Failed" Job runs DTS package - 05-25-2006 , 04:16 PM



Ah yes, the job owner was changed to DOMAIN\Administrator as well.

I'm not sure what to look for next with an 'unknown object'. Where to
go from here? Does this indicate it is something in the SQL in the DTS
package? Perhaps the unknown object refers to this crazy command in
the Job (the only command, which initiates the DTS package):
DTSRun
/~Z0xD8C007929BB5B841E67EFB638FB851937369013FD7C90B F167BF7FB439F711D02FDECF8021842B4A5CCE3A21F68E3722 4BD063C9BAA12E385573517006E1A929765984A9D3D6DF0182 8C8EA63D5C788E5D9C72EF898523E097FB930B89ADA401C374 FF7704A792B2EA88D6


What I mean is, could it be referencings an expired command reference?
I'm not sure what that command line up there means, but it looks like a
GUID.

.....I'm at a loss!

~Mahalie

Allan Mitchell wrote:
Quote:
Hello mahalie (AT) gmail (DOT) com,

I know you have read the article about Jobs and DTS but one thing you did
not mention is the job owner? Anyways that said. It looks as though the
job gets so far and fails.

Error Message 208 in TSQL would be unknown object.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

I have a DTS Package that drops local tables, recreates them and then
pulls new data from a database on a different server. At first I
couldn't get the package to run as a scheduled job at all I read KB
article 269074 and made sure the job would run on the server and that
SQL server agent runs as a domain account with sysadmin permissions
both locally and on the other server.
Now the DTS Package completes, but the Job says it failed. I verified
it the DTS package ran. (Event viewer also shows DTS package
successfully executing but the Job failing). When manually starting
the job from Enterprise Manager I get the same behavior. The job
fails
even though the DTS package runs.
There is only one step in the job and on success is set to 'quite
with success' and on failure set to 'quit with failure'.
Here are the job history details (on example, they're all basically
the same):
Step ID 0 (Job Outcome), result - failed:
The job failed. The Job was invoked by Schedule 58
(DTS_ServerBToServerA 2). The last step to run was step 1
(DTS_ServerBToServerA 2).
Step ID 1 DTS_ServerBToServerA 2, result - failed:
Executed as user: DOMAIN\Administrator. ...:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart:
DTSStep_DTSDataPumpTask_1 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 1000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2180 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 2180 DTSRun OnFinish:
DTSStep_DTSDataPumpTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_5 DTSRun OnFinish: DTSStep_D... Process
Exit Code 1. The step failed.
In the event viewer there are no warnings other than for
SQLSERVERAGENT, event ID 208, notification of failed job which
immediately follows the information event "The execution of the
following DTS Package succeeded"
Any ideas? I'd really appreciates some help...I'm pretty new to
SQL. One other thing I've noticed is that there's a newer service
pack for SQL. I'm using SQL Server 2000 8.00.760 Service Pack 3 on a
Microsoft Windows 2000 Server v. 5.0.2195 SP 4.


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: "Failed" Job runs DTS package - 05-25-2006 , 04:33 PM



Hello mahalie (AT) gmail (DOT) com,



This is the perishing encrypted command line you get by default when right
clicking a package and choosing "Schedule package". The fact is your package
executes so that is OK.

Try using package logging and not relying on the Job Step Logging




Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Ah yes, the job owner was changed to DOMAIN\Administrator as well.

I'm not sure what to look for next with an 'unknown object'. Where to

go from here? Does this indicate it is something in the SQL in the DTS

package? Perhaps the unknown object refers to this crazy command in

the Job (the only command, which initiates the DTS package):

DTSRun

/~Z0xD8C007929BB5B841E67EFB638FB851937369013FD7C90B F167BF7FB439F711D02
FDECF8021842B4A5CCE3A21F68E37224BD063C9BAA12E38557 3517006E1A929765984A
9D3D6DF01828C8EA63D5C788E5D9C72EF898523E097FB930B8 9ADA401C374FF7704A79
2B2EA88D6

What I mean is, could it be referencings an expired command reference?
I'm not sure what that command line up there means, but it looks like
a GUID.

....I'm at a loss!

~Mahalie

Allan Mitchell wrote:

Hello mahalie (AT) gmail (DOT) com,

I know you have read the article about Jobs and DTS but one thing you
did not mention is the job owner? Anyways that said. It looks as
though the job gets so far and fails.

Error Message 208 in TSQL would be unknown object.

Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com
I have a DTS Package that drops local tables, recreates them and
then
pulls new data from a database on a different server. At first I
couldn't get the package to run as a scheduled job at all I read KB
article 269074 and made sure the job would run on the server and
that
SQL server agent runs as a domain account with sysadmin permissions
both locally and on the other server.
Now the DTS Package completes, but the Job says it failed. I
verified
it the DTS package ran. (Event viewer also shows DTS package
successfully executing but the Job failing). When manually starting
the job from Enterprise Manager I get the same behavior. The job
fails
even though the DTS package runs.
There is only one step in the job and on success is set to 'quite
with success' and on failure set to 'quit with failure'.
Here are the job history details (on example, they're all basically
the same):
Step ID 0 (Job Outcome), result - failed:
The job failed. The Job was invoked by Schedule 58
(DTS_ServerBToServerA 2). The last step to run was step 1
(DTS_ServerBToServerA 2).
Step ID 1 DTS_ServerBToServerA 2, result - failed:
Executed as user: DOMAIN\Administrator. ...:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_2 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_1 DTSRun OnStart:
DTSStep_DTSDataPumpTask_1 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 1000 Rows have been transformed or
copied.;
PercentComplete = 0; ProgressCount = 1000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2000 Rows have been transformed or
copied.;
PercentComplete = 0; ProgressCount = 2000 DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 2180 Rows have been transformed or
copied.;
PercentComplete = 0; ProgressCount = 2180 DTSRun OnFinish:
DTSStep_DTSDataPumpTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_7 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_8 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_5 DTSRun OnFinish: DTSStep_D...
Process
Exit Code 1. The step failed.
In the event viewer there are no warnings other than for
SQLSERVERAGENT, event ID 208, notification of failed job which
immediately follows the information event "The execution of the
following DTS Package succeeded"
Any ideas? I'd really appreciates some help...I'm pretty new to
SQL. One other thing I've noticed is that there's a newer service
pack for SQL. I'm using SQL Server 2000 8.00.760 Service Pack 3 on
a
Microsoft Windows 2000 Server v. 5.0.2195 SP 4.



Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: "Failed" Job runs DTS package - 05-25-2006 , 07:18 PM



Thanks Allan...logging turned out to be the solution. Well, the KB
article mentioned earlier (269074) that I read and reread and thought I
understood turned out to detail my problem. Just when I thought I was
done with the package designer (I mean, the DTS package worked, so why
break it?) - I executed the package one step at a time to look for
anything suspicious. It all went off well, but at the end a log error
popped up. I took a look at Package Properties (accessible by right
clicking in the package designer - not on an object). On the logging
tab 'fail package on log error' was toggled. I left it toggled but
changed the path to the log file. It was pointing to something
invalid...I also changed the path from mapped drive to UNC. It finally
works both when I run it manually from Enterprise Manager on my
desktop, from the Server and as a scheduled job as the SQL Server
Agent's account! Whoopee!!

(Does this kind of stuff ever make you do an embarrasing dance in front
of your coworkers?)

~mahalie


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.