I have this annoying problem where it says that the project and package have different protectionlevels. Which is not true, they are all the same set to "EncryptSensitiveWithUserKey".
I tried this Protection level changed mid project - now project won't build and some other solutions, non worked.
Whenever I want to build or rebuild it says:
Error 1 Project consistency check failed. The following inconsistencies were detected: Persoon.dtsx has a different ProtectionLevel than the project. CountableUren.dtsx has a different ProtectionLevel than the project. Projecten.dtsx has a different ProtectionLevel than the project. Master_LAB_DSA.dtsx has a different ProtectionLevel than the project. DimProject.dtsx has a different ProtectionLevel than the project. DimPersoon.dtsx has a different ProtectionLevel than the project. DimLookupSources.dtsx has a different ProtectionLevel than the project. InitializeDim.dtsx has a different ProtectionLevel than the project. Master_LAB_ETL.dtsx has a different ProtectionLevel than the project. Master_LAB_DWH.dtsx has a different ProtectionLevel than the project. 0 0
In "View code" there is no "DTS:ProtectionLevel="X"" when set to "EncryptSensitiveWithUserKey". And in the project's property, it's set to "EncryptSensitiveWithUserKey". I also tried setting everything to "DontSaveSensitive", which also gave me the same error.
How to fix this?
Right Click your project name in Solution Explorer to the right of the screen and select Properties. Change ProtectionLevel under Security to DontSaveSensitive.
Open the package in the SSIS designer. If the Properties window does not show the properties of the package, click the design surface. In the Properties window, in the Security group, select the appropriate value for the ProtectionLevel property.
In the properties pane of your SSIS project, you will find the security section. There are only two properties here, Package Password and Protection Level. Click the drop down arrow next to Protection level to see all the options that are available.
Solution was found by the help of billinkc in the comments above and by following this solution: Protection level changed mid project - now project won't build
Problem was that the ProtectionLevel's were not the same. Some were 1 and others 2, while in the properties menu they were all the same.
So these steps got it fixed:
I received this error with a new dtsx that I'd created in a solution that had others.
I removed the new package and re-added it, and it was fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With