dbTalk Databases Forums  

DTS pkg runs from EM gui and cmd prompt but not in job or procedure.

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


Discuss DTS pkg runs from EM gui and cmd prompt but not in job or procedure. in the microsoft.public.sqlserver.dts forum.



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

Default DTS pkg runs from EM gui and cmd prompt but not in job or procedure. - 10-15-2003 , 09:43 AM






Hello everyone!

I have a DTS package that uses and ODBC DSN to tranfer data from my SQL DB
table to an AS400 table. When I run the package from within Enterprise
Manger (EM) or from the DOS command prompt (from a client or the SQL server)
the job executes fine. If I try to execute the package from within a sp
using the xp_cmdshell I get an error. Same thing happens when I place the
dtsrun command inside an Operating system command step within a job. Here
is the error:

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)
Error string: Error at Destination for Row number 1. Errors encountered
so far in this task: 1.
Error source: DTS Data Pump
Help file:
Help context: 0
Error Detail Records:
Error: -2147467259 (80004005); Provider Error: 0 (0)
Error string: Query cannot be updated because it contains no searchable
columns to use as a key.
Error source: Microsoft OLE DB Provider for ODBC Drivers
Help file:
Help context: 0
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147213206 (8004206A)
Error string: The number of failing rows exceeds the maximum specified.
Error source: Microsoft Data Transformation Services (DTS) Data Pump
Help file: sqldts80.hlp
Help context: 0
Error Detail Records:
Error: -2147213206 (8004206A); Provider Error: 0 (0)
Error string: The number of failing rows exceeds the maximum specified.
Error source: Microsoft Data Transformation Services (DTS) Data Pump
Help file: sqldts80.hlp
Help context: 0
Error: -2147467259 (80004005); Provider Error: 0 (0)
Error string: Query cannot be updated because it contains no searchable
columns to use as a key.
Error source: Microsoft OLE DB Provider for ODBC Drivers
Help file:
Help context: 0
DTSRun OnFinish: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.
NULL


Anyone know what I'm doing wrong here? Thanks in advance!



Reply With Quote
  #2  
Old   
Ryan Waight
 
Posts: n/a

Default Re: DTS pkg runs from EM gui and cmd prompt but not in job or procedure. - 10-15-2003 , 10:09 AM






This may help :-

http://support.microsoft.com/?kbid=269074

--
HTH
Ryan Waight, MCDBA, MCSE

"Brian Watkins" <raistlin19 (AT) aol (DOT) com> wrote

Quote:
Hello everyone!

I have a DTS package that uses and ODBC DSN to tranfer data from my SQL DB
table to an AS400 table. When I run the package from within Enterprise
Manger (EM) or from the DOS command prompt (from a client or the SQL
server)
the job executes fine. If I try to execute the package from within a sp
using the xp_cmdshell I get an error. Same thing happens when I place
the
dtsrun command inside an Operating system command step within a job.
Here
is the error:

DTSRun: Loading...
DTSRun: Executing...
DTSRun OnStart: DTSStep_DTSDataPumpTask_1
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)
Error string: Error at Destination for Row number 1. Errors
encountered
so far in this task: 1.
Error source: DTS Data Pump
Help file:
Help context: 0
Error Detail Records:
Error: -2147467259 (80004005); Provider Error: 0 (0)
Error string: Query cannot be updated because it contains no
searchable
columns to use as a key.
Error source: Microsoft OLE DB Provider for ODBC Drivers
Help file:
Help context: 0
DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147213206 (8004206A)
Error string: The number of failing rows exceeds the maximum
specified.
Error source: Microsoft Data Transformation Services (DTS) Data Pump
Help file: sqldts80.hlp
Help context: 0
Error Detail Records:
Error: -2147213206 (8004206A); Provider Error: 0 (0)
Error string: The number of failing rows exceeds the maximum
specified.
Error source: Microsoft Data Transformation Services (DTS) Data Pump
Help file: sqldts80.hlp
Help context: 0
Error: -2147467259 (80004005); Provider Error: 0 (0)
Error string: Query cannot be updated because it contains no
searchable
columns to use as a key.
Error source: Microsoft OLE DB Provider for ODBC Drivers
Help file:
Help context: 0
DTSRun OnFinish: DTSStep_DTSDataPumpTask_1
DTSRun: Package execution complete.
NULL


Anyone know what I'm doing wrong here? Thanks in advance!





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

Default Re: DTS pkg runs from EM gui and cmd prompt but not in job or procedure. - 10-15-2003 , 10:54 AM




Could be a blindingly obvious comment but do you need a primary key or
index on the table you're pushing the data into on the AS400 ?



Originally posted by Brian Watkins

Quote:
Hello everyone!



I have a DTS package that uses and ODBC DSN to tranfer data from
my SQL DB

table to an AS400 table. When I run the package from within
Enterprise

Manger (EM) or from the DOS command prompt (from a client or the
SQL server)

the job executes fine. If I try to execute the package from
within a sp

using the xp_cmdshell I get an error. Same thing happens when I
place the

dtsrun command inside an Operating system command step within a
job. Here

is the error:



DTSRun: Loading...

DTSRun: Executing...

DTSRun OnStart: DTSStep_DTSDataPumpTask_1

DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147467259
(80004005)

Error string: Error at Destination for Row number 1. Errors
encountered

so far in this task: 1.

Error source: DTS Data Pump

Help file:

Help context: 0

Error Detail Records:

Error: -2147467259 (80004005); Provider Error: 0 (0)

Error string: Query cannot be updated because it contains no
searchable

columns to use as a key.

Error source: Microsoft OLE DB Provider for ODBC Drivers

Help file:

Help context: 0

DTSRun OnError: DTSStep_DTSDataPumpTask_1, Error = -2147213206
(8004206A)

Error string: The number of failing rows exceeds the maximum
specified.

Error source: Microsoft Data Transformation Services (DTS)
Data Pump

Help file: sqldts80.hlp

Help context: 0

Error Detail Records:

Error: -2147213206 (8004206A); Provider Error: 0 (0)

Error string: The number of failing rows exceeds the maximum
specified.

Error source: Microsoft Data Transformation Services (DTS)
Data Pump

Help file: sqldts80.hlp

Help context: 0

Error: -2147467259 (80004005); Provider Error: 0 (0)

Error string: Query cannot be updated because it contains no
searchable

columns to use as a key.

Error source: Microsoft OLE DB Provider for ODBC Drivers

Help file:

Help context: 0

DTSRun OnFinish: DTSStep_DTSDataPumpTask_1

DTSRun: Package execution complete.

NULL




Anyone know what I'm doing wrong here? Thanks in advance!



--
Posted via http://dbforums.com


Reply With Quote
  #4  
Old   
Brian Watkins
 
Posts: n/a

Default Re: DTS pkg runs from EM gui and cmd prompt but not in job or procedure. - 10-17-2003 , 09:28 AM



Ryan,

Thanks for the link I think that it put me on the right track to solving
this one. I'll post to let you know what I did to fix it.

rcmburton,
It would seem blindingly obvious that I need a primary key if not for the
fact that the package only fails when scheduled in a job or used in a stored
procedure.
Since the package works when run manually the primary key error is
ridiculous. This is a package permissions/ownership issue. The error code
leave much to be desired in this case.



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.