Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18013
Number of posts: 55386

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VB.Net override DTS Global Variable problem Posted by Stompcat on 3 May 2005 at 12:17 PM
The relevent code I'm using to override the global variable is below. The DTS package runs within DTS, however, when I try to execute with .Net, I get the error log file below: What parameter is missing a default value? 'DTSTransformation__28' is a text file which I'm trying to override with the global variable "FileName".
Any clues or hints?


Dim oPKG As DTS.Package
Dim oVar As DTS.GlobalVariables
oVar = oPKG.GlobalVariables
oVar.Item("FileName").Value = sFileName


*******************************LOG FILE *******************************************
Execution Started: 5/3/2005 12:24:14 PM

@@LogSourceRows: Q:\CLP-IT\Statistics\People Counter\WaitingInput\TestInput\FrankErrors.txt.Source
@@LogDestRows: Q:\CLP-IT\Statistics\People Counter\WaitingInput\TestInput\FrankErrors.txt.Dest

@@ErrorRow: 1
Error during Transformation 'DTSTransformation__28' for Row number 1. Errors encountered so far in this task: 1.

Error Source: Microsoft Data Transformation Services (DTS) Data Pump
Error Description:Error Code: 0
Error Source= Microsoft VBScript runtime error
Error Description: Invalid procedure call or argument: 'DTSDestination'

Error on Line 7

Error Help File:sqldts80.hlp
Error Help Context ID:30631


Error Source: mscorlib
Error Description:Missing parameter does not have a default value.
Parameter name: parameters
Error Help File:
Error Help Context ID:0
@@SourceRow: Logged
@@DestRow: Not Available

@@ExecutionCompleted

Execution Completed: 5/3/2005 12:24:16 PM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.