dbTalk Databases Forums  

DTS Package Step Set to Inactive, but job says failed????

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


Discuss DTS Package Step Set to Inactive, but job says failed???? in the microsoft.public.sqlserver.dts forum.



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

Default DTS Package Step Set to Inactive, but job says failed???? - 11-22-2004 , 12:25 PM






Hello,

I have been a DBA for over 5 years now, mostly on MS SQL Server. This
is a strange problem that I have never run accross before...

It runs fine under execute package, but the job fails. I have looked
for a solution on Google, Microsoft, etc, but none of the questions I
find fit my problem...

I have a complex DTS package that runs as a job. The user who created
and owns the DTS is a Local Admin, and in the System Admin role, the
SQLServerAgent login is a System Admin.

The code that stops and sets the step to inactive is in the workflow
properties and is as follows: (Editted to remove proprietory
information)

'************************************************* *********************
' Visual Basic ActiveX Script
'************************************************* ***********************

Function Main()

if DTSGlobalVariables("VarName").Value = 0 then
main = DTSStepScriptResult_DontExecuteTask
else
Main = DTSStepScriptResult_ExecuteTask
end if
End Function

'************************************************* **

However every time I run this script using a job (OS command using
"DTSRun /SServerName /E /N"DTS Name Here" it says it fails with the
following data in the "Show Step details" window.
---------------------------------------------------------
Executed as user: Comp...\User.... DTSRun: Loading... DTSRun:
Executing... DTSRun OnStart: DTSStep_DTSActiveScriptTask_1 DTSRun
OnFinish: DTSStep_DTSActiveScriptTask_1 DTSRun OnStart:
DTSStep_DTSExecuteSQLTask_3 DTSRun OnFinish:
DTSStep_DTSExecuteSQLTask_3 DTSRun OnStart:
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnFinish:
DTSStep_DTSDynamicPropertiesTask_1 DTSRun OnStart:
DTSStep_DTSActiveScriptTask_2 DTSRun OnFinish:
DTSStep_DTSActiveScriptTask_2 DTSRun OnStart:
DTSStep_DTSDynamicPropertiesTask_5 DTSRun OnFinish:
DTSStep_DTSDynamicPropertiesTask_5 DTSRun OnStart:
DTSStep_DTSDynamicPropertiesTask_4 DTSRun OnProgress:
DTSStep_DTSDynamicPropertiesTask_4; Step was not run; status was set
to Inactive.; PercentComplete = 0; ProgressCount = 0 DTSRun
OnFinish: DTSStep_DTSDynamicPropertiesTask_4 DTSRun: Package
execution complete. Process Exit Code 8. The step failed.


-----------------------------------------------------------
Anyone have any ideas... I'm stumped because I have other DTS's that
do this same thing based on file sizes or other criteria and they
aren't erroring out.

Thanks in advance
Ryan S.
DBA/Programmer
Microsoft DBA MCP

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.