保护级别在项目中期改变 - 现在项目将无法建立

Wil*_*man 4 sql-server ssis sql-server-2012

开始一个新的SSIS项目,忘了将默认保护级别设置为"不保存敏感"(我们的标准)现在项目中途进行了更改(在项目级别和每个包中).检查时所有包都是不保存敏感,项目是不保存敏感,但是在尝试构建时,我得到了

项目一致性检查失败.检测到以下不一致:PACKAGE1.dtsx具有与项目不同的ProtectionLevel.PACKAGE2.dtsx具有与项目不同的ProtectionLevel.... PACKAGE(N).dtsx与项目具有不同的ProtectionLevel.

(它列出了项目中的每个包,即使它们都与项目级保护相匹配.)

bil*_*nkc 10

我怀疑你遇到了同样的问题.我通过API纠正了我的所有包裹,以便他们都表明他们DTS:ProtectionLevel="0"没有受到保护.

项目(.dtproj)文件还具有设置为DontSaveSensitive的保护级别. <SSIS:Project SSIS:ProtectionLevel="DontSaveSensitive" xmlns:SSIS="www.microsoft.com/SqlServer/SSIS">

The mismatch for me was that inside the project file, it keeps track of far too much information about each package so if you scroll down, you'll see an entry per package like <SSIS:Property SSIS:Name="ProtectionLevel">3</SSIS:Property> or whatever the default number is. Make that 0 in the file (search and replace). Save the project file and it'll now build.

You might need to perform a Build All to get it to build. I suspect that VS/SSDT is trying to use the extra data it stores in the .dtproj file to determine whether it needs to validate all the packages in a project. Since we hand edited the file, it didn't trip whatever sensor would normally be flipped to signal a full recompile was needed.

  • 考虑到需要重建答案以及猜测原因. (3认同)