Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Error while running a package through job that downloads files for SFTP server Expand / Collapse
Author
Message
Posted Wednesday, September 26, 2012 7:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, September 28, 2012 3:56 AM
Points: 2, Visits: 2
I created a package to download files from a SFTP server. This package, when run via Development Studio (BIDS), works fine and downloads the specified files successfully from the SFTP location. However when I call this package using job the files get downloaded but also shows below error:

Source: Description: Failed to decrypt protected XML node "ServerPassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2012-09-24 05:43:10.63 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "ProxyPassword" with error 0x8009000B "Key not valid for use in specified state.". You may not be authorized to access this information. This error occurs when there is a cryptographic error. Verify that the correct key is available. End Error Error: 2012-09-24 05:43:10.63 Code: 0xC0016016 Source: Description: Failed ... The package execution fa... The step failed.

Any help would be appreciated...
Thanks in advance!

--Lukesh Rathore
Post #1364667
Posted Thursday, September 27, 2012 12:20 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 5:52 AM
Points: 1,114, Visits: 2,191
Hi Lukesh,

I think you are using the default EncryptSensitiveWithPassword option for package protection level. This option will only work if you use exactly the same user account to execute the package under SQL Job Agent that you used to design the package or if you setup proxy account under SQL Job Agent. I would recommend you change the package protection level to EncryptSensitiveWithPassword and do not forget to include the /DE parameter to your job step command line.


---
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/

Post #1365443
Posted Friday, September 28, 2012 4:08 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, September 28, 2012 3:56 AM
Points: 2, Visits: 2
Thank you very much for your reply!

I got another solution - I changed the Protection Level as ServerStorage and saved the package to SSIS Package Store as package location instead of saving the package as file system. So The package gets saved and deployed to the specified server at the same time.

Thanks again for your help!

--Lukesh
Post #1365741
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse