Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Using FTP Task - get Password Not Allowed

Author  Topic 

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2013-02-08 : 11:55:20
Hello again,

I'm using the 2008 FTP Task which includes the login and password.

The package completess successful and uploads the files.

However when ran from an agent job, it fails with "Key not valid... password not allowed"

Much has been posted about various ways to resolve this issue.
Can someone give me the simplest solution please?
Thanks, Jack

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2013-02-08 : 15:53:00
We can close this topic.
I added a C# script to resolve the password issue.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-08 : 23:01:35
you just need to choose protection level as save sensitive using password and give a password for package.

Then in job after adding package step give same password there and it will be able to get sensitive details including FTP password while executing

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2013-02-09 : 16:34:40
Thanks, visakh16.

You said: "Then in job after adding package step give same password there and it will be able to get sensitive details including FTP password while executing"

Can you explain how I would do that in the job step, please?

I like your technique better than adding a C# script which is what I used.

Thanks, Jack



Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-11 : 00:56:32
Ok..Reading again I understand what you were telling was password that FTP task uses and not ssis package password.
In such cases best thing you can do is to use a variable to pass the password to FTP task using expression buolder and then add variable as a configurable item and then pass it through your configurations (either through XML file, SQL server table query or registry/environment variable)

see an example here where I've done it using password passed by user as a config item.

http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jbates99
Constraint Violating Yak Guru

396 Posts

Posted - 2013-02-12 : 16:28:24
visakh16 - I used a C# script and that worked perfectly.
This one is solved. Thanks,
Jack
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-02-13 : 04:46:54
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -