Solved

SSIS Package Failed to decrypt protected XML node

Posted on 2009-04-01
12
3,809 Views
Last Modified: 2013-11-10
Hi experts,
I am a newbie. I have a situation where I need to open up a package built by my Colleague and  when I open the package I get an error
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.
I know that Its because the package properties are to ENCRYPTSENSITIVEWITHUSERKEY ... we need to change the property so that the package developed can be open by others also in order to make any modifications... I have tried changing it to DontsaveSensitivedata.If I do that i need to enter the credentials for the ODBC connections manually eachtime.. is there any workaround

Thanks
0
Comment
Question by:danny1620
  • 7
  • 5
12 Comments
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24040976
Store those credentials in a XML file or in a SQL database table using package configurations funtionality
For futher details check the attached doc.
Helped?

regards,
Pedro
www.pedrocgd.blogspot.com
POTS-EX02-EN.doc
0
 

Author Comment

by:danny1620
ID: 24042515
Hi pedro,
Thanks.But,that did not help... I see that you have answered my other related question also
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/Q_24285379.html#a24041522
 Am i doing something wrong .. I have attached the XML file. I have modified the Usernames and passwords as the XML file when created did not have any values .. I am using an ODBC connection Setup In such a case what would my server name be ..... Help me out
Thanks

Package-Config-XML.txt
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24044299
"passwords as the XML file when created did not have any values" is normal and intentional for security reasons.
Tomorrow I will take a look on your questions.
0
 

Author Comment

by:danny1620
ID: 24044359
Oh Is it!!... OK Thank You.. Will wait for your suggestions
Thanks again
0
 

Author Comment

by:danny1620
ID: 24046325
The solution you gave works fine with ODBC for oracle and even with native SQL client but i have packages which use Oracle Provider for Oracle and the connection string stores just the username, password and dsn it does not have any provider info ... How do i go about..

thanks
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24048831
You can store using package configurations, just username, database... or all the connection string...
If you have problems using XML file, store the sensitive data inside a SQL database table with specific permissions... with all the connection string or some part of it.
Dont forget to set DelayValidation=True in all the connections you use Package COnfigurations.

Also test outside SSIS if your connection to oracle is ok.
regards,
pedro
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:danny1620
ID: 24050815
I have tried to use both SQL Server Package config and XML Config ... I have attached XLS with my SQL Server Config table.. Just check the data in I have added the password for both TEST Filter and TEST Filter1.. TEST Filter uses SQL Server as Dest and Orcale Provider for Oracle as Source and when i run the package deployed on MSDB I get the error.... While the TEST filter1 uses ODBC For Oracle and it gave me the same error message but it ran fine when i update the password values..... Is It different setup when dealing with Oracle Provider for Oracle ...DO I need to update any values
Below is the info used to connect to the Oracle DB using Oracle Provider for Oracle
Database:  Device List
Description: [Oracle 8i]
IP Address: 192.23.66.10
Host Name: ************
IP Address:
DB login with read permissions:
User: *****
Password: *******
Oracle Service Name: ********
 Thanks

SSIS-Config.xls
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24058461
Your machine is a 32 or 64 bits?
0
 

Author Comment

by:danny1620
ID: 24060428
Its 32 bits..
0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24096169
Try it on another machine
0
 

Author Comment

by:danny1620
ID: 24119940
I am getting the same error Message as below
===================================
Package Validation Error (Package Validation Error)
===================================
Error at Import  router data from ODBC database to  Device [ (Oracle) [1]]: System.Data.Odbc.OdbcException: ERROR [28000] [Oracle][ODBC][Ora]ORA-01005: null password given; logon denied
ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed
ERROR [28000] [Oracle][ODBC][Ora]ORA-01005: null password given; logon denied
   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
   at System.Data.Odbc.OdbcConnectionOpen..ctor(OdbcConnection outerConnection, OdbcConnectionString connectionOptions)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
   at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager100.AcquireConnection(Object pTransaction)
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper100 wrapper, Object transaction)
Error at Import  router data from  ODBC database to  Device [SSIS.Pipeline]: component "ODBC(Oracle)" (1) failed validation and returned error code 0x80131937.
Error at Import  router data from  ODBC database to  Device [SSIS.Pipeline]: One or more component failed validation.
Error at Import router data from ODBC database to  Device: There were errors during task validation.
 (Microsoft.DataTransformationServices.VsIntegration)
 
0
 

Accepted Solution

by:
danny1620 earned 0 total points
ID: 24281123
I got it working I Dont know why it was not taking the bUilt in ODBC Connection But the workaround was to use the Whole Connection String by using the Build Connection String Option ...
Thanks


0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now