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

  • 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

  • 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/

  • 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

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply