SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Using FTP Task - get Password Not Allowed
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jbates99
Constraint Violating Yak Guru

376 Posts

Posted - 02/08/2013 :  11:55:20  Show Profile  Reply with Quote
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

376 Posts

Posted - 02/08/2013 :  15:53:00  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 02/08/2013 :  23:01:35  Show Profile  Reply with Quote
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

376 Posts

Posted - 02/09/2013 :  16:34:40  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 02/11/2013 :  00:56:32  Show Profile  Reply with Quote
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

376 Posts

Posted - 02/12/2013 :  16:28:24  Show Profile  Reply with Quote
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

India
52317 Posts

Posted - 02/13/2013 :  04:46:54  Show Profile  Reply with Quote
welcome

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

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000