Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SSIS Conditional Split boolean result

In conditional split component, I need to know if Age equals -1 and am using following statement. enter image description here

However, there comes errors when running. How should I modify my statement? Thx a 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.
like image 801
Echo Avatar asked Aug 23 '12 16:08

Echo


People also ask

How do you write conditional condition split in SSIS?

Add a SSIS Conditional Split Transformation to the Data Flow The Conditional Split Transformation task checks for the specified condition. It moves the data to an appropriate destination depending upon the condition. Drag the SSIS Conditional Split task from the SSIS Toolbox.

How do I use Isnull in conditional split in SSIS?

The ISNULL() function can be used to find Null value rows. Step 3: Connect two Multicast Transformation to the Conditional Split Transformation, One Output NullRecords will be connect to one Multicast and default Output to second Multicast Transformation.

How many conditions can be given inside a single conditional split?

Scripting in the conditional split configuration needs the VBScript format. In the above configuration, three conditions are configured. In this configuration, the dataset is divided into three conditions.

What is conditional split transactions in SSIS?

A Conditional Split Transformation in SSIS is just like the IF condition or CASE statement. It checks the given condition and based on the condition result, the output will send to the appropriate destination path. It has ONE input and MANY outputs.


1 Answers

I am guessing that you have some NULL values for age. If you want to send NULL's to the same Unknown Output then you could change the expressions to be:

ISNULL(Age) || Age == -1
like image 199
SQLMD Avatar answered Sep 17 '22 01:09

SQLMD