You might see the following error while a package was newly imported and is set to be called from an SQL Agent through a job. The job would fail reporting the below error.
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
This is mainly because, the package protection level, which is by default set to "EncryptWithSensitiveKey"
Resolution: Set the package protection level to "DontSaveSensitive". But, if in case you know the password for the key, you could use it.
How to change the SSIS Package Protection:
In Business Intelligence Development Studio, open the Integration Services project that contains the package.
Open the package in the SSIS designer.
If the Properties window does not show the properties of the package, click the design surface and prss F4.
In the Properties window, in the Security, select the appropriate value for the ProtectionLevel property.
Open the package in the SSIS designer.
If the Properties window does not show the properties of the package, click the design surface and prss F4.
In the Properties window, in the Security, select the appropriate value for the ProtectionLevel property.
If you select a protection level that requires a password, enter the password as the value of the PackagePassword property.
Save and Close the Package and execute successfully.
Save and Close the Package and execute successfully.
Comments
Post a Comment