Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error while running a package through job that downloads files for SFTP server


Error while running a package through job that downloads files for SFTP server

Author
Message
lukeshr
lukeshr
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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
CozyRoc
CozyRoc
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1150 Visits: 2235
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/


lukeshr
lukeshr
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search