how to remove empty sting and null vale in conditional split ssis

nononame2021 261 Reputation points
2021-11-11T07:42:48.843+00:00

ssis and using vs2012, how to remove empty and null value in data flow?
2. how to trim all the input in data flow?

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
{count} votes

4 answers

Sort by: Most helpful
  1. nononame2021 261 Reputation points
    2021-11-12T10:50:14.49+00:00

    I have 3 record store in table with 2 column, ID and col1 as shown below.

    ID col1
    1 null
    2 ''
    3 'dd'

    how to remove null and empty record in conditional splits in data flow task in ssis

    my expected result is only retrieve the col1 with Val, for above case, it is the 3rd row where ID=3

    0 comments No comments

  2. Yitzhak Khabinsky 26,586 Reputation points
    2021-11-12T13:42:58.083+00:00

    Hi @nononame2021 ,

    You can try the following expression in the SSIS Conditional Split Task:

    ISNULL(col1) || TRIM(col1) == ""  
    

  3. ZoeHui-MSFT 41,491 Reputation points
    2021-11-15T08:08:09.353+00:00

    Hi @nononame2021 ,

    I think YitzhakKhabinsky's reply could resolve your issue correctly.

    You may click "Accept Answer" on the reply so that we could archive the case.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. nononame2021 261 Reputation points
    2021-11-16T07:46:15.313+00:00

    I want to filter out the column named 'test' ="Y"
    WHAT SHOULD I INPUT FOR OUTPUT NAME IN CONDITIONAL SPLIT?

    I setup test=="Y"

    it trigger error that requires a boolean result.
    what should I setup in conditional splits so that select the test column = "Y"


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.