DTS scheduled job failing -- not permissions problem!

DTS scheduled job failing -- not permissions problem!

Post by Stephen Ryback » Tue, 24 Jun 2003 22:44:19



All,

I have a DTS package that is designed to access a web page
via a VB Script task, and place the resulting XML document
into a global package variable.  Then this global variable
is passed into the f9ollowing stored procedure via an
Execute SQL Task (Call: EXEC bsp_PopulateTempXML ?) :

CREATE PROCEDURE bsp_PopulateTempXML


AS

DECLARE



BEGIN







                SELECT DISTINCT *
                INTO #TempTab

                WITH
                        (TYPE CHAR(1),
                        [DATE] DateTime,
                        [TIME] DateTime,
                        MOBILE VARCHAR(20),
                        MOBILE_NAME VARCHAR (20),
                        LOCATION VARCHAR (20))

                INSERT INTO RAPIDS_XML_Import
(EVENTTYPE,EVENTDATETIME,MOBILE,MOBILE_NAME,LOCATION,
STATUS)
                (SELECT TYPE,DATE + ' ' + TIME AS
EVENTDATETIME,MOBILE,MOBILE_NAME,LOCATION, 'X' FROM
#TempTab)


        END
END
GO

The last step of the package is a VB Script task which
processes this data now available in the import table into
the main system.

All of this runs just fine when executed interactively,
either step by step or as a package whole.  I can (and
did) have this same package/job scheduled and running on a
development platform.  The only difference between these
two platforms is that production runs on a Win2K Server
and our dev platform is still on NT 4.0 (SP6).

I have already run through KBID 269074 (How to run a DTS
Package as a Scheduled Job) with no relief, and we run
MANY DTS packages here, which means we are fairly well
versed at this.  This job is an exception and it is
driving me nuts!

FWIW, the actual error message found within the Job
History is this:

Executed as user: RAP05\RAP05SQLSvc. ...ting...   DTSRun
OnStart:  DTSStep_DTSActiveScriptTask_1   DTSRun OnError:  
DTSStep_DTSActiveScriptTask_1, Error = -2147220421
(8004043B)      Error string:  The task reported failure
on execution.      Error source:  Microsoft Data
Transformation Services (DTS) Package      Help file:  
sqldts80.hlp      Help context:  1100      Error Detail
Records:      Error:  -2147220421 (8004043B); Provider
Error:  0 (0)      Error string:  The task reported
failure on execution.      Error source:  Microsoft Data
Transformation Services (DTS) Package      Help file:  
sqldts80.hlp      Help context:  1100         Error:  -
2147467259 (80004005); Provider Error:  0 (0)      Error
string:  The system cannot locate the resource
specified.         Error source:  msxml3.dll      Help
file:        Help context:  0      DTSRun OnFinish:  
DTSStep_DTSActiveScriptTask_1   DTSRun OnStart:  
DTSStep_DTSExecuteSQLTask_1   DTSRun OnError:  
DTSStep_DTSExecuteSQLTask_1, Error = .  The step failed.

Can anyone set me straight here?

Sorry for the long post,

Steve

 
 
 

DTS scheduled job failing -- not permissions problem!

Post by Stephen Ryback » Wed, 25 Jun 2003 02:16:01


For anyone interested, this problem was resolved by giving
the account that runs the SQLAgentService proxy server
access so they could get to the Internet.

>-----Original Message-----
>All,

>I have a DTS package that is designed to access a web
page
>via a VB Script task, and place the resulting XML
document
>into a global package variable.  Then this global
variable
>is passed into the f9ollowing stored procedure via an
>Execute SQL Task (Call: EXEC bsp_PopulateTempXML ?) :

>CREATE PROCEDURE bsp_PopulateTempXML


>AS

>DECLARE



>BEGIN







>            SELECT DISTINCT *
>            INTO #TempTab
>            FROM OpenXML

>            WITH
>                    (TYPE CHAR(1),
>                    [DATE] DateTime,
>                    [TIME] DateTime,
>                    MOBILE VARCHAR(20),
>                    MOBILE_NAME VARCHAR (20),
>                    LOCATION VARCHAR (20))

>            INSERT INTO RAPIDS_XML_Import
>(EVENTTYPE,EVENTDATETIME,MOBILE,MOBILE_NAME,LOCATION,
>STATUS)
>            (SELECT TYPE,DATE + ' ' + TIME AS
>EVENTDATETIME,MOBILE,MOBILE_NAME,LOCATION, 'X' FROM
>#TempTab)


>    END
>END
>GO

>The last step of the package is a VB Script task which
>processes this data now available in the import table
into
>the main system.

>All of this runs just fine when executed interactively,
>either step by step or as a package whole.  I can (and
>did) have this same package/job scheduled and running on
a
>development platform.  The only difference between these
>two platforms is that production runs on a Win2K Server
>and our dev platform is still on NT 4.0 (SP6).

>I have already run through KBID 269074 (How to run a DTS
>Package as a Scheduled Job) with no relief, and we run
>MANY DTS packages here, which means we are fairly well
>versed at this.  This job is an exception and it is
>driving me nuts!

>FWIW, the actual error message found within the Job
>History is this:

>Executed as user: RAP05\RAP05SQLSvc. ...ting...   DTSRun
>OnStart:  DTSStep_DTSActiveScriptTask_1   DTSRun
OnError:  
>DTSStep_DTSActiveScriptTask_1, Error = -2147220421
>(8004043B)      Error string:  The task reported failure
>on execution.      Error source:  Microsoft Data
>Transformation Services (DTS) Package      Help file:  
>sqldts80.hlp      Help context:  1100      Error Detail
>Records:      Error:  -2147220421 (8004043B); Provider
>Error:  0 (0)      Error string:  The task reported
>failure on execution.      Error source:  Microsoft Data
>Transformation Services (DTS) Package      Help file:  
>sqldts80.hlp      Help context:  1100         Error:  -
>2147467259 (80004005); Provider Error:  0 (0)      Error
>string:  The system cannot locate the resource
>specified.         Error source:  msxml3.dll      Help
>file:        Help context:  0      DTSRun OnFinish:  
>DTSStep_DTSActiveScriptTask_1   DTSRun OnStart:  
>DTSStep_DTSExecuteSQLTask_1   DTSRun OnError:  
>DTSStep_DTSExecuteSQLTask_1, Error = .  The step failed.

>Can anyone set me straight here?

>Sorry for the long post,

>Steve
>.


 
 
 

1. DTS Transform Data Task fails in job where DTS Execute SQL Task does not

I have experienced the following issue in several DTS packages.  I use
Transform Data Task to transfer data from a table on one SQL Server to a
table on another SQL Server.  The package executes successfully when run
manually and fails with the error shown below when run from a job.

However, if I use an insert statement in a Execute SQL Task to accomplish
the same task,  the package executes successfully when run manually and when
run from a job.

Can anyone explain why jobs running with Transform Data Task sometimes fail
as shown below?

 DTSRun:  Executing...   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; 3000 Rows have been
transformed or copied.; PercentComplete = 0; ProgressCount = 3000   DTSRun
OnProgress:  DTSStep_DTSDataPumpTask_1; 4000 Rows have been transformed or
copied.; PercentComplete = 0; ProgressCount = 4000   DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 5000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 5000   DTSRun OnProgress:
DTSStep_DTSDataPumpTask_1; 6000 Rows have been transformed or copied.;
PercentComplete = 0; ProgressCount = 6000   ...  Process Exit Code 1.  The
step failed.

2. Which collate to use

3. DTS scheduled job failed..

4. Embedded SQL or OCI?

5. DTS Package fails when scheduled on server as SQL Server Agent job

6. Are 5 Ora 7.3.3 Instances on 1 NT Box a good practice ?

7. DTS Package Failed When Running As A Schedule Job - Error -2147024893

8. Err 70, Permission Denied

9. DTS Scheduled Jobs fail after SQL SP3 install

10. DTS Package Fails to Run When Scheduled as Job

11. scheduled job for dts failed #2

12. Scheduled job for dts failed

13. DTS jobs fail to be scheduled