SSIS条件拆分布尔结果

Ech*_*cho 4 conditional ssis split boolean-expression

在条件拆分组件中,我需要知道Age是否等于-1并使用以下语句. 在此输入图像描述

但是,运行时会出现错误.我该如何修改我的陈述?这是一个loooooooot!

Error: The expression "Age == -1" on "output "Unknown" (12743)" evaluated to NULL, but the "component "Age Conditional Split 1" (12740)" requires a Boolean results. Modify the error row disposition on the output to treat this result as False (Ignore Failure) or to redirect this row to the error output (Redirect Row).  The expression results must be Boolean for a Conditional Split.  A NULL expression result is an error.
Run Code Online (Sandbox Code Playgroud)

小智 11

我猜你有一些年龄的NULL值.如果要将NULL发送到同一个未知输出,则可以将表达式更改为:

ISNULL(Age) || Age == -1
Run Code Online (Sandbox Code Playgroud)