I was getting the following error with a SSIS package I deployed on the server: Failed to decrypt protected XML node “DTS:Password”.
I spend a lot of time on this error, before I figured this one out. At first it wasn’t clear to who or what caused this error. After investigation I noticed the error occurred only when I added an Execute Package Task.
Apparently you can set an password on a SSIS package and the Execute Package Task needs this password to run the specified SSIS package.
But mine SSIS packages didn’t have a password. So how could this be a problem? This is where SSIS package encryption comes looking around the corner.
SSIS Package encryption
If you open a SSIS package, you can modify the properties of it, by selecting a blank spot in the Control Flow tab, right click and then Properties.
There is a property called ProtectionLevel which determents when and how sensitive data should be encrypt. Sensitive data is date like passwords, like a SSIS Package password.
With the default value EncryptSensitiveWithUserKey all sensitive data will be encrypted with an hash key, that is created from the current user, designing the package. This is the reason why this error occurs, only happens when you deploy the SSIS package. On the server it is running under a different user, which generates a different hash.
But the strange thing was, that I didn’t put a password on the SSIS package, so why does it fail?
The problem is that even if the password of an SSIS package is blank, it will still be encrypted with this hash and it will therefore throw this error when running under a different user.
How to solve it
To solve this problem, you should change the called SSIS package in the Execute Package Task. Change the property ProtectionLevel to DontSaveSensitve. This will not store any password with SSIS package (so it doesn’t need to hash them) and running from Execute Package Task will now succeeded.
You can also use ServerStorage of you deploy in SQL Server.
Keep in mind that al sensitive data, like all password-part in database connections, are also not stored with the package and needs to be given at runtime, using Package Configurations.
Thanks u save my life today
Good work!
Excellent! Great help! wow… I struggled for days with this. Now I need to figure out why i cant get the SSIS to work with “DontSaveSensitve” chosen.
Thank you; it would’ve taken me a long time to track this down. (I’m fresh from an hours-long battle discovering it was a single column called “ErrorCode” in the source DB I’m trying to copy that was making my SSIS package bomb out.)
Thanks.. You had the clearest answer.. Good job.
Thank you!!! Great explanation and straight to the point.
Excellent…thanks for explaining…great job!
Примерный текст: Каталог элитной парфюмерии только известные бренды, 100% оригинальная продукция, Хватит переплачивать за парфюмерию. и.т.д
Super site, and nice text.
Incredible website I loved reading your information
party supplies
I was reading where someone was recommending straw. The truth is we need to hold big oil accountable for clean up the mess they have created!
Well, really happy to read this article, I have bookmarked your website and will turn back to read your new articles.
Hei, I like this blog, many good information, I want to subscribe it, can anyone help me?
Gracias por la punta!
Voy a añadir su blog a mi lista!
Fantastic resources. Wish I could get more knowledge like this from others! Thanks!
Thank you for writing on this subject. Using Bing for the first time, found your blog.
great thing we all gots the internetz
I am creating a new site related to this subject.I need the RSS feed of your blog to have some matter from your website.Can you please provide me of the RSS feed of your website.The feed you will provide will contain link back to your blog,so you can also get backlink from my blog,notify me at “vikas.kumar” (yahoo id)
Last week i downloaded Mass Effect Torrent from http://www.games-iso.com and, even though its a really OLD game, its simply the best XBOX 360 game ever made in my opinion.
I absolutely adore reading your posts, your expressive way of writing is fantastic.This article as usual was helpful, I have had to bookmark your blog and subscribe to your feed in googlereader. Your blog looks spot on.
I added a link to this site on my blog! can you add a link of my blog to your site
Awesome article! thanks for the good read!
Hey guys i wish to share with you a way i make $500 daily and i only spend 5 minuites doing it a day! I strongly suggest you check their site out as there is really a brilliant video that explains every thing you have to know. Check them out at DOMINATE MOBILE MARKETING
I really like the way your blog looks. I think it is awesome. If you dont care me asking, what theme is this site? Thank you.
levitra kaufen