Cannot use a sensitive project parameter on SSIS 2012
Asked Answered
G

1

7

In SSIS 2012 I am trying to use a sensitive project parameter for an OLEDB connection for oracle. It works perfectly with the Sensitive property set to FALSE (in Project Params Designer). But I do not want the password to be visible like that. As soon as, I turn the Sensitive attribute to TRUE and try to execute my package, I get the following error:

Error: 0xC0017010 at Package: The expression will not be evaluated because it contains sensitive parameter variable "$Project::OracleConnectionString". Verify that the expression is used properly and that it protects the sensitive information.

Any advice would be appreciated!

Thanks, Vick

Guglielmo answered 5/2, 2015 at 7:25 Comment(7)
Try changing the package security protection level to EncryptSensitiveWithPassword and save the package and run.Volk
How are you using $Project::OracleConnectionString? I assume that you are trying to assign it as an Expression on the Connection Manager, correct? If so, that's not the way to do with the 2012 Project Deployment ModelSasha
@RaoY Thanks for reply. At present the protection level is set to DontSaveSensitive and I am sticking with that unless there is a valid reason to change.Guglielmo
@Sasha Yes that's right, my solution is in Project Deployment Model and I have parameterized the project connection for the connection string.Guglielmo
@Sasha what should be our approach for this in 2012 Project Deployment Model. Please suggest. Thanks!Guglielmo
@Guglielmo are you still looking for an answer?Theorem
@billinkc, you said that assigning ConnectionString parameters to Connection Manager as expressions is not the way to do it in SSIS 2012. What's the recommended way then? Vick, did you find an answer? I'm having the same issueBasting
I
4

What I had to do was remove the password from the connection string, leave its Sensitive attribute set to False. Then add an expression for the Password. Set it and then set its Sensitive attribute to True.

Indeclinable answered 12/10, 2017 at 18:57 Comment(1)
This worked for me, even while deploying the package in SSIS server, through PowerShell script.Cletus

© 2022 - 2025 — McMap. All rights reserved.