RE: SSIS - FTP Error

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Laura,

Yes, you understand what I am trying to accomplish.

I am setting the variable in my script task using the following syntax:

Dts.Variables("sRemotePath").Value = sRemotePath

I did notice that the link you had sent uses a different way of setting a
variable. I tried that as well with the same error:

Dim pkg As Package = New Package
Dim varRemotePath As Variable = pkg.Variables.Add("sRemotePath", False,
"User", "/output/123005.xls")

I will send the error message and my script task code to you shortly.

Thanks,
Jason




"Laura Zhang [MSFT]" wrote:

> Hi Jason,
>
> Thank you for your posting.
>
> If I understand properly, you created a SSIS package which downloads a file
> from a FTP site and then inserts data into a SQL table. If you use a
> variable you receive the error message saying that "Failed to lock
> variable". You have set the variable in the script task and set the
> experssion property to @[User::sRemotePath].
>
> To create and use package variables, you can refer to the "Creating and
> Using Package Variables" section of SQL Server 2005 Books Online:
>
> http://msdn2.microsoft.com/en-us/library/ms136082.aspx
>
> If this problem continues, please help us collect some information so that
> we can perform further research on this issue:
>
> 1. How did you set the variable in the script task? Please describe it in
> detail.
> 2. Please perform the following steps to take a screen shot of the error
> message dialog box:
>
> - When the error message appears, press Alt + Pr Scrn to capture a screen
> shot. The Pr Scrn is a key on the keyboard. It normally locates above the
> Insert key.
> - From Start, go to Run, enter MSPAINT in the Open box, and then click OK.
> - Use Ctrl + V to paste the screen shot to the canvas.
> - From the File menu, go to Save and save as a JPG or BMP file. Please send
> it to me at your earliest convenience.
>
> If you have any updates, please feel free to let us know. We are glad to be
> of assistance.
>
> Have a nice day!
>
> Best regards,
>
> Laura Zhang
> Microsoft Online Partner Support
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
> =====================================================
> Business-Critical Phone Support (BCPS) provides you with technical phone
> support at no charge during critical LAN outages or "business down"
> situations. This benefit is available 24 hours a day, 7 days a week to all
> Microsoft technology partners in the United States and Canada.
>
> This and other support options are available here:
> BCPS:
> https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
> Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/
>
> If you are outside the United States, please visit our International
> Support page: http://support.microsoft.com/common/international.aspx.
>
> =====================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
>
.



Relevant Pages

  • Re: Global Variables and Script Task
    ... Public Sub Main ... I would like to construct an error message ... After executing the Script Task, ... "Package: Microsoft.SqlServer.Dts.Runtime.Variable\rInternal Step Name" ...
    (microsoft.public.sqlserver.dts)
  • Re: Unexpected error (8000ffff) when checking for windows updates
    ... match): package: ... Microsoft Product Support Services at 1-866-PCSAFETY. ... support calls that are associated with security updates. ... for updates via the Windows update app. ...
    (microsoft.public.windowsupdate)
  • Re: how is Haskell not robust?
    ... Haskell has not reached critical mass. ... have a thousand packages but still poor support for mainstream package ... If anyone would make money with the language or a compiler ...
    (comp.lang.functional)
  • new ppp package
    ... package contains the much requested PPP over ATM and MPPE support. ... * Add a patch from Herbert Xu to fix the PPPIOCDETACH bug. ... * Add the popp example script from Tomas Pospisek. ...
    (Debian-User)
  • RE: Hung SSIS package is hanging my database
    ... SSIS logging and log providers let you capture details about the package ... connections, it might be some internal errors in SQL Server, To find out ... has to be done by contacting Microsoft Product Support Services. ... Microsoft Product Support Services so that a dedicated Support Professional ...
    (microsoft.public.sqlserver.dts)