Hello Lu,
Sorry, If I miss spell ur name actaully I am confused abt what's ur First
name so forgive me for that.
Anyways, where I am Facing problem is, when I try to assign some value to
the Read/Write variable of the Script Task, SSIS is throwing some Variable
Lock exception saying the Variable is already lock n there is deadlock on
that variable. Also it shows that it tries to gain lock on this variable
around abt 16 times when i switch 2 the Exception Results Tab.
There is no code in the Script Main except the following lines:
Dim variables As Variables
If Dts.Variables.Contains("FTPFile") = True Then
Dts.VariableDispenser.LockOneForWrite("FTPFile", variables)
End If
variables("FTPFile").Value = "MyFile.txt"
Interesting thing is when I lock this for Read as a ReadOnly variable
surprisingly things work all fine. No errors!!!
I am not getting where I am going wrong, it will be really nice if u can
send in the correct lines of code n let me know where I am getting wrong.
Thanks in Advance,
Sachin R. Chavan.
"Wei Lu [MSFT]" wrote:
> Hello Chavan,
>
> You could set a ReadWrite Variable to get the filepath of the FTP file in
> the Script Task and contain this Script Task in a For loop container.
>
> And in the FTP task, you could use the vatiable as the Remotepath.
>
> Here are some sample article:
>
> http://www.databasejournal.com/features/mssql/article.php/3518431
>
> Sincerely,
>
> Wei Lu
> Microsoft Online Community Support
>
> ==================================================
>
> When responding to posts, please "Reply to Group" via your newsreader so
> that others may learn and benefit from your issue.
>
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> >> Stay informed about: SSIS FTP Task