<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Null Handling in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249344#M33913</link>
    <description>Hi Lennelei,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;If I use tschemacompliance check component it will give me 2 flow main and reject, But what I want is if column(name) is coming null from source..still I have to load null into the target table and in target table I have one column(err_text) in that I have to put "name is null".</description>
    <pubDate>Wed, 24 Jul 2019 19:04:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-24T19:04:32Z</dc:date>
    <item>
      <title>Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249342#M33911</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My requirement is check null in multiple columns,if null found in any column then mention the reason in error column.Do i need to write java code for that, or I can do it in tmap itself?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly suggest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;Source:&lt;/P&gt;
&lt;P&gt;ID Name&amp;nbsp; &amp;nbsp; Address&amp;nbsp; &amp;nbsp; &amp;nbsp; City&lt;/P&gt;
&lt;P&gt;&amp;nbsp;1&amp;nbsp; Century&amp;nbsp; &amp;nbsp;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nagpur&lt;/P&gt;
&lt;P&gt;&amp;nbsp;2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***********************************&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;ID Name&amp;nbsp; &amp;nbsp; Address&amp;nbsp; &amp;nbsp; &amp;nbsp; City&amp;nbsp; &amp;nbsp; &amp;nbsp; Error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;1&amp;nbsp; Century&amp;nbsp; &amp;nbsp;abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Nagpur&lt;/P&gt;
&lt;P&gt;&amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name,Address,City column is null&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dua&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249342#M33911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249343#M33912</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you may use a tSchemaComplianceCheck component : if you untick the Nullable checkbox of the columns you want to check in the schema, it will reject rows will null value with a message "column_name1:empty or null; column_name2:empty or null" if column_name1 and column_name2 are null for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't forget to uncheck the&amp;nbsp;&lt;EM&gt;Treat all empty string as NULL &lt;/EM&gt;option in the Advanced Settings if you want to check only for nulls (if you don't, the component will also reject empty strings).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 15:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249343#M33912</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-24T15:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249344#M33913</link>
      <description>Hi Lennelei,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;If I use tschemacompliance check component it will give me 2 flow main and reject, But what I want is if column(name) is coming null from source..still I have to load null into the target table and in target table I have one column(err_text) in that I have to put "name is null".</description>
      <pubDate>Wed, 24 Jul 2019 19:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249344#M33913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T19:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249345#M33914</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; If its the requirment, you can do the null check by Relational ISNULL function and if the value is true, you can create a message for each column and if its not null, add an empty string error message. While loading the data, merge all the error messages by concatenation operator (+) and you can write the output to error column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 19:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249345#M33914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-24T19:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249346#M33915</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can redirect both outputs of the tSchemaComplianceCheck to the database. If you don't insert more than a few thousands rows at a time, it shouldn't lock the whole table and you should be fine. I presume that depends on the database of course.&lt;/P&gt; 
&lt;P&gt;In the worst scenario, save the rows from both outputs either in memory (tHashOutput) or in a temporary file and then insert the data from there.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that doesn't answer your needs, you'll have to write the whole expression manually in a tMap for example.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249346#M33915</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-25T08:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249347#M33916</link>
      <description>&lt;P&gt;Hello Dua,&lt;/P&gt;
&lt;P&gt;the code in tMap for Var.Error could be&lt;/P&gt;
&lt;PRE&gt;Source.Name == null || Source.Address == null || Source.City == null ? "Name,Address,City column is null" : ""&lt;/PRE&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Thomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249347#M33916</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2019-07-25T14:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249348#M33917</link>
      <description>&lt;P&gt;Hi Dua,&lt;/P&gt; 
&lt;P&gt;With tMap this can be easily solved.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First check null condition of each column using [Relational.ISNULL(row2.Name)?"":row2.Name ]&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6KI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145199i8D64834203EA7400/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6KI.png" alt="0683p000009M6KI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Second step is to create one variable and give the below condition&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6O4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155092iBDDA475117CD00B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6O4.png" alt="0683p000009M6O4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then you will get the following output.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="16.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Hh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150804i3B0AD8C56A1489F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Hh.png" alt="0683p000009M6Hh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249348#M33917</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T13:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249349#M33918</link>
      <description>Hi Hesinberg,
&lt;BR /&gt;Thanks for the reply &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;
&lt;BR /&gt;The solution provide by you is working fine if each column contain null value.But if I have source like this:
&lt;BR /&gt;Name. address
&lt;BR /&gt;Hesinberg Null
&lt;BR /&gt;Output:
&lt;BR /&gt;Name address Error_text
&lt;BR /&gt;Hesinberg. Null. Name,address is null
&lt;BR /&gt;It will give message like name,address is null because you are hardcoding every column in else condition.
&lt;BR /&gt;
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Dua
&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Jul 2019 19:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249349#M33918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249350#M33919</link>
      <description>&lt;P&gt;Hi Dua,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Then, in this scenario, you have to take all the possible case to print which column is NULL.&lt;/P&gt; 
&lt;P&gt;Here is a full condition : -&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; Relational.ISNULL(row2.City) ? "Name, Address, City is NULL" : (Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; !Relational.ISNULL(row2.City) ? "Name, Address is NULL" : (Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; !Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; Relational.ISNULL(row2.City) ? "Name, City is NULL" : (!Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; Relational.ISNULL(row2.City) &amp;amp;&amp;amp; Relational.ISNULL(row2.Address) ? "Address, City is NULL" : (!Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; !Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; Relational.ISNULL(row2.City) ? "City is NULL" : (!Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; !Relational.ISNULL(row2.City) ? "Address is NULL" : (Relational.ISNULL(row2.Name) &amp;amp;&amp;amp; !Relational.ISNULL(row2.Address) &amp;amp;&amp;amp; !Relational.ISNULL(row2.City) ? "Name is NULL" : ""))))))&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="courier new,courier" color="#0000FF"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 503px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Jb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142221i860338824C5324CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Jb.png" alt="0683p000009M7Jb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Aug 2019 08:32:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling/m-p/2249350#M33919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-11T08:32:49Z</dc:date>
    </item>
  </channel>
</rss>

