简体   繁体   English

SSIS 条件拆分错误 - 表达式评估为 NULL,但“条件拆分”需要 Boolean 结果

[英]SSIS Conditional Split Error - The expression evaluated to NULL, but the "Conditional Split" requires a Boolean results

It is my first time using this software.这是我第一次使用这个软件。 I am trying to split the value but it is showing this and I do not have any null have when I see my source but when I preview it, it shows null value in the first 200 columns but I have only 15 columns.我正在尝试拆分该值,但它显示了这一点,当我看到我的源代码时我没有任何 null 但是当我预览它时,它在前 200 列中显示 null 值,但我只有 15 列。

Error: 0xC020902B at Data Flow Task, Conditional Split [2]: The expression "[Copy of RATE_INR] > 1000" on "Conditional Split.Outputs[Case 1]" evaluated to NULL, but the "Conditional Split" requires a Boolean results.错误:数据流任务中的 0xC020902B,条件拆分 [2]:“条件拆分。输出 [案例 1]”上的表达式“[RATE_INR] > 1000”评估为 NULL,但“条件拆分”需要 Z27226C864BAC7454A8504DF 结果. 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).修改 output 上的错误行处置,将此结果视为 False(忽略失败)或将此行重定向到错误 output(重定向行)。 The expression results must be Boolean for a Conditional Split.对于条件拆分,表达式结果必须是 Boolean。 A NULL expression result is an error. NULL 表达式结果是错误的。

You are using the following expression in your conditional split component:您在条件拆分组件中使用以下表达式:

[Copy of RATE_INR] > 1000

As mentioned in the error message, this expression is evaluated as NULL which throws an exception since the conditional split component requires a boolean result (True/False).如错误消息中所述,此表达式被评估为NULL ,这会引发异常,因为条件拆分组件需要 boolean 结果(真/假)。

You can solve this problem by using the REPLACENULL function:您可以通过使用REPLACENULL function 来解决此问题:

REPLACENULL([Copy of RATE_INR],0) > 1000

Or或者

REPLACENULL([Copy of RATE_INR] > 1000, False)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM