I have a dtsx package with a priority constraint that evaluates an expression and a constraint. The limitation is “success”, and the expression “@myVariable” == 3. myVariable is int32, and when it is installed in the Visual Studio GUI, the package runs fine. There are two other ways that check a value of 1 or 2.
However, when I try to run the package from the command line and pass the value for my variable, it mistakenly claims that the expression does not evaluate the boolean!
Command:
dtexec /F "c:myPackage.dtsx" /SET \Package.Variables[User::myVariable].Properties[Value];3
Error:
The expression "@myVariable == 1" must evaluate to True or False. Change the expression to evaluate to a Boolean value.
The fact that this works fine with the GUI and that Microsoft documentation requests == (intuitively) return a boolean value is very confusing to me. I also tried to surround 3 in double quotes on my team with no luck, and now I have no ideas.
Anyone have any idea what is going on?
source share