Skip to content Skip to sidebar Skip to footer

Ssis Conditional Split, But Want To Check A Pattern

Please see the below flowchart. How can i really achieve it. It tried various things in the SSIS Expression.

Solution 1:

Assuming any number from 0 to 99999 should be considered 'True', then you can attempt a cast and redirect the error row to 'False' if the cast to integer fails. Example:

your conditional split will be False when

(DT_I4)[Column1] > 99999

and your data flow should look like this:

enter image description here

Solution 2:

If you want to use regular expressions then you could use a Script Component to fill a (new) column and then use a Conditional Split to filter on that column. Or you could redirect the 'good' and 'bad' rows to their own output within the Script Component itself. Here is an example of that. It redirects bad email addresses to an other output: http://microsoft-ssis.blogspot.com/2011/03/regular-expressions-in-ssis.htmlenter image description here

Post a Comment for "Ssis Conditional Split, But Want To Check A Pattern"