Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS issue Failed to decrypt protected XML node

I created an SSIS package which is having ftp pull files from ftp server and save to my local drive but I'm getting this issue.

With same error message I was getting only warning but today the job fails.

Message:

Executed as user: cam\Package.Runner. Microsoft (R) SQL Server Execute Package Utility Version 10.0.4000.0 for 64-bit Copyright (C) Microsoft Corp 1984-2005. All rights reserved. Started: 10:00:00 AM Error: 2012-02-15 10:00:00.61 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Password" 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-02-15 10:00:00.62 Code: 0xC0016016 Source: Description: Failed to decrypt protected XML node "DTS:Property" 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-02-15 10:00:33.53 Code: 0xC0029183 Source: Principal Balance File FTP Get FTP Task Description: File represented by "/Concerto/Virtus_Reports/Concerto Principal Balance Report*.pdf" does not exist. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 10:00:00 AM Finished: 10:00:33 AM Elapsed: 33.088 seconds. The package execution failed. The step failed.

like image 248
Neo Avatar asked Feb 15 '12 16:02

Neo


People also ask

What is failure to decrypt?

The message means that entered password does not correspond to a fingerprint stored in application storage. There might be two reasons for these issue: 1. Application has been reinstalled with a password, other then one used with previous installation to encrypt database.

How to decrypt password in SSIS package?

Use Execute SQL Task , Get the encrypted value from database and store the value in this “EncryptionKey”. Use Script component to decrypt the password from the SSIS Variable “EncryptionKey” and pass this value (Dynamically) to the connection string property of connection manager.

What is cryptographic error in SSIS?

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. Note. The PackageName placeholder is a placeholder for the name of the SSIS package that you are trying to run.

How do I change the package protection level in SSIS?

Open the package in the SSIS designer. If the Properties window does not show the properties of the package, click the design surface. In the Properties window, in the Security group, select the appropriate value for the ProtectionLevel property.


1 Answers

Please try save your package with the option "EncryptSensitiveWithPassword".

Step-1: Right click on your FTP connection manager, go to its Properties (the very bottom, not the Edit button), and type in the password.

Step-2: Save your package with EncryptSensitiveWithPassword.

Step-3: Now edit the command ling in SQL job agent as below /FILE "C:\Fullpath of SSIS pkg.dtsx" /DECRYPT password

like image 125
Veer Avatar answered Sep 22 '22 13:09

Veer