dbTalk Databases Forums  

Error when running package

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


Discuss Error when running package in the microsoft.public.sqlserver.dts forum.



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

Default Error when running package - 11-07-2003 , 09:26 AM






I keep getting the following error message when trying to run a package that contains only two steps... An ActiveX Task that is declaring properties for an Bulk Export Task

Error Source: Microsoft Data Transformation Services (DTS) Package

Error Description: General Error -2147220501 (800403EB).

and that's it...

I have .NET installed on my machine, when I debug the script... I'm being advised that the Bulk Export Task does not exist but it's there on the screen...

Here is the code that I'm using:

Option Explicit

Function Main()

Dim FF
Dim oPkg
Dim uFileDate, uFileName

Set oPkg = DTSGlobalVariables.Parent

uFileDate = Replace(FormatDateTime((Now() -1), vbShortDate), "/", "")
uFileDate = Replace(uFileDate, Year(Now()), Right(Year(Now()), 2))
uFilename = "\\server_leadpool\e$\Servitel\Update_" & uFileDate & ".txt"

Set FF = oPkg.Tasks("DTSStep_DTSBulkExport.ExportData_1").C ustomTask
FF.Properties("ServerName") = "Server_Leads"
FF.Properties("Flags") = 256
FF.Properties("ObejctName") = "vSel_FLUpdateFile"
FF.Properties("ObjectType") = 1
FF.Properties("ExportFile") = uFileName
Main = DTSTaskExecResult_Success
End Function

Thanks in advance

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

Default Re: Error when running package - 11-07-2003 , 10:22 AM






You have given the name of a STEP to a TASK

Set FF = oPkg.Tasks("DTSStep_DTSBulkExport.ExportData_1").C ustomTask

change it to

Set FF = oPkg.Tasks("DTSTask_DTSBulkExport.ExportData_1").C ustomTask

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Toby" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I keep getting the following error message when trying to run a package
that contains only two steps... An ActiveX Task that is declaring properties
for an Bulk Export Task
Quote:
Error Source: Microsoft Data Transformation Services (DTS) Package

Error Description: General Error -2147220501 (800403EB).

and that's it...

I have .NET installed on my machine, when I debug the script... I'm being
advised that the Bulk Export Task does not exist but it's there on the
screen...
Quote:
Here is the code that I'm using:

Option Explicit

Function Main()

Dim FF
Dim oPkg
Dim uFileDate, uFileName

Set oPkg = DTSGlobalVariables.Parent

uFileDate = Replace(FormatDateTime((Now() -1), vbShortDate), "/", "")
uFileDate = Replace(uFileDate, Year(Now()), Right(Year(Now()), 2))
uFilename = "\\server_leadpool\e$\Servitel\Update_" & uFileDate & ".txt"

Set FF = oPkg.Tasks("DTSStep_DTSBulkExport.ExportData_1").C ustomTask
FF.Properties("ServerName") = "Server_Leads"
FF.Properties("Flags") = 256
FF.Properties("ObejctName") = "vSel_FLUpdateFile"
FF.Properties("ObjectType") = 1
FF.Properties("ExportFile") = uFileName
Main = DTSTaskExecResult_Success
End Function

Thanks in advance



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

Default Re: Error when running package - 11-07-2003 , 01:16 PM



I made the change now I'm still getting an error but all it says

title bar states: ActiveX Script Task:undefined
message: unspecified error

and that's it it's not even opening .NET script debugger...

Any ideas

----- Allan Mitchell wrote: -----

You have given the name of a STEP to a TASK

Set FF = oPkg.Tasks("DTSStep_DTSBulkExport.ExportData_1").C ustomTask

change it to

Set FF = oPkg.Tasks("DTSTask_DTSBulkExport.ExportData_1").C ustomTask

--
--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org

"Toby" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I keep getting the following error message when trying to run a package
that contains only two steps... An ActiveX Task that is declaring properties
for an Bulk Export Task
Quote:
Error Source: Microsoft Data Transformation Services (DTS) Package
Error Description: General Error -2147220501 (800403EB).
and that's it...
I have .NET installed on my machine, when I debug the script... I'm being
advised that the Bulk Export Task does not exist but it's there on the
screen...
Quote:
Here is the code that I'm using:
Option Explicit
Function Main()
Dim FF
Dim oPkg
Dim uFileDate, uFileName
Set oPkg = DTSGlobalVariables.Parent
uFileDate = Replace(FormatDateTime((Now() -1), vbShortDate), "/", "")
uFileDate = Replace(uFileDate, Year(Now()), Right(Year(Now()), 2))
uFilename = "\\server_leadpool\e$\Servitel\Update_" & uFileDate & ".txt"
Set FF = oPkg.Tasks("DTSStep_DTSBulkExport.ExportData_1").C ustomTask
FF.Properties("ServerName") = "Server_Leads"
FF.Properties("Flags") = 256
FF.Properties("ObejctName") = "vSel_FLUpdateFile"
FF.Properties("ObjectType") = 1
FF.Properties("ExportFile") = uFileName
Main = DTSTaskExecResult_Success
End Function
Thanks in advance




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.