Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Name 'dts' is not declared

$
0
0

I've inherited a SSIS 2005 task that I've moved into SSIS 2008. In the task besides the ScriptMain.vb there is a Reference.vb. The reference.vb was modified to the following: 

Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists

It is part of the following:

 Public Sub New()
            MyBase.New()
            Me.Url = dts.Variables("ListUrl").Value.ToString() 'Global.LotNumberExtract.My.MySettings.Default.LotNumberExtract_wsLotNumbers_Lists
            If (Me.IsLocalFileSystemWebService(Me.Url) = True) Then
                Me.UseDefaultCredentials = True
                Me.useDefaultCredentialsSetExplicitly = False
            Else
                Me.useDefaultCredentialsSetExplicitly = True
            End If
        End Sub

Since the DTS object is not a static global object like in SSIS 2005, it is throwing the "Name 'dts' is not declared" error.

How can I correct this so it works?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>