SSIS条件拆分布尔结果

时间:2012-08-23 16:25:01

标签: ssis split conditional boolean-expression

在条件拆分组件中,我需要知道Age是否等于-1并使用以下语句。 enter image description here

但是,运行时会出现错误。我该如何修改我的陈述?这是一个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.

1 个答案:

答案 0 :(得分:11)

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

ISNULL(Age) || Age == -1