在 SSIS 2012 中将项目参数敏感属性设置为 true 时出现验证错误 [英] validation error when project parameter sensitive property is set to true in SSIS 2012

查看:37
本文介绍了在 SSIS 2012 中将项目参数敏感属性设置为 true 时出现验证错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SSIS 2012 并通过项目部署模型部署项目.我有 3 个项目连接管理器,并通过项目参数将密码信息传递给连接管理器.当我将密码参数的 Sensitive 属性设置为 False 时,包运行良好,但是当我将其设置为 true 时,它​​会出现以下错误:

I am using SSIS 2012 and deploying projects via project deployment model. I have 3 project connection managers and passing the password information to the connection manager through a project parameter. When I set the Sensitive property of password parameter to False the package runs fine but when I set it to true it gives the below error :

错误:SSIS 错误代码 DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.对连接管理器ConnManager"的 AcquireConnection 方法调用失败,错误代码为 0xC0202009

Error: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "ConnManager" failed with error code 0xC0202009

推荐答案

这是错误的,因为您试图触摸标记为敏感的参数.您不能使用旧"方法来配置连接管理器.对于项目部署模型和连接管理器,在 SSISDB 中,右键单击项目并选择配置.

It is erroring because you are trying to touch a Parameter that is marked as Sensitive. You cannot use the "old" approach for configuring connection managers. For the project deployment model and Connection managers, in the SSISDB, you right click on the project and select Configure.

您可以在此处覆盖密码.

There is where you overlay a password.

否则,您需要使用 GetSensitiveValue 方法来访问该值,而不是使用标准的 Getter 属性.

Otherwise, you then need to use the GetSensitiveValue method to access the value instead of the standard Getter property.

Dts.Variables["$Package::FtpPassword"].GetSensitiveValue().ToString();

参见马特的文章 在脚本中检索敏感参数的值

这篇关于在 SSIS 2012 中将项目参数敏感属性设置为 true 时出现验证错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆