<?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 Null Handling from a query result in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233263#M22988</link>
    <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tamp4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaTf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147125i34447EE8054DFA64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaTf.jpg" alt="0683p000009MaTf.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;i,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a simple job&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Query Q1 - if the query returns records,then it will take Path1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- If the query doesnt return any record, then take path 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;From my Query Q1, i get a Id and i have built an expression in the tmap using the id as below. But though th query returns null or no records, still the flow doesn't take 'Record Doesnt exist' route.. ami missing something?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap3.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141587i6E7FDC6049959FD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIs.jpg" alt="0683p000009MaIs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:04:05 GMT</pubDate>
    <dc:creator>Jennifer_siders</dc:creator>
    <dc:date>2024-11-16T02:04:05Z</dc:date>
    <item>
      <title>Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233263#M22988</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tamp4.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaTf.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147125i34447EE8054DFA64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaTf.jpg" alt="0683p000009MaTf.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;i,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a simple job&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Query Q1 - if the query returns records,then it will take Path1&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- If the query doesnt return any record, then take path 2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;From my Query Q1, i get a Id and i have built an expression in the tmap using the id as below. But though th query returns null or no records, still the flow doesn't take 'Record Doesnt exist' route.. ami missing something?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tmap3.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaIs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141587i6E7FDC6049959FD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaIs.jpg" alt="0683p000009MaIs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233263#M22988</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2024-11-16T02:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233264#M22989</link>
      <description>It seems there is a syntax error on the expression "row5.id. == null" should be "row5.id == null" (no point after id).
&lt;BR /&gt;If Q1 returns no result, it's normal to not pass by the "Record Doesnt exist route" (no record, no dataflow).
&lt;BR /&gt;You will go there only for records where id is null (not empty if it's a string).</description>
      <pubDate>Wed, 24 Jun 2020 13:31:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233264#M22989</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-06-24T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233265#M22990</link>
      <description>&lt;P&gt;I have updated my screenshot, but still same result..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have changed it to&amp;nbsp;row5.Id == (" ") as Id is a Salesforce Record Id still no luck&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 13:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233265#M22990</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2020-06-24T13:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233266#M22991</link>
      <description>&lt;P&gt;Oh ok,&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp; understood that if there are no records, then it will never take 'Record Doesnt Exist' path? if so how do we control the flow from a tsalesforceinput component in cases where there is no data returned?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 13:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233266#M22991</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2020-06-24T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233267#M22992</link>
      <description>Well, it depends of what you try to do.
&lt;BR /&gt;Sometimes you may just do nothing.
&lt;BR /&gt;Sometimes, you may store the query result to an intermediary object such as a file or tHashOutput then control the number of records stored in this object. Remember you may also retrieve the number of records return by the query using associated global variable such as "tSalesforceInput_1_NB_LINE" which is an integer.</description>
      <pubDate>Wed, 24 Jun 2020 13:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233267#M22992</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-06-24T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233268#M22993</link>
      <description>Also careful, you should NEVER use == to compare string variables. Instead use equals() method like this "".equals(row5.Id)</description>
      <pubDate>Wed, 24 Jun 2020 13:55:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233268#M22993</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-06-24T13:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233269#M22994</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I think i am close to the solution. I have utilised NB_LINE.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As shown below, the NB_LINE value is 1 if there is a record and 0 if no records are found. how can i use that value tSalesforceInput_4.NB_LINE = 0 to change the path to Tmap_6-&amp;gt;tSalesforceoutputbulkexec_2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="25_2.JPG" style="width: 828px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MaTu.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127993i61EFEEEC739BD744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MaTu.jpg" alt="0683p000009MaTu.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 05:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233269#M22994</guid>
      <dc:creator>Jennifer_siders</dc:creator>
      <dc:date>2020-06-25T05:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Null Handling from a query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233270#M22995</link>
      <description>&lt;P&gt;Hey @Jennifer Siders​&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having a similar issue (&lt;A href="https://community.talend.com/s/question/0D55b00007UGRCgCAP/how-do-i-create-a-flow-for-no-records-found?language=en_US" alt="https://community.talend.com/s/question/0D55b00007UGRCgCAP/how-do-i-create-a-flow-for-no-records-found?language=en_US" target="_blank"&gt;which I posted here&lt;/A&gt;). I'm not sure what you did in this picture but I'm wondering if you might have a moment to help me do a similar flow. Like you, I want a specific flow when a query returns no values.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2022 18:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Null-Handling-from-a-query-result/m-p/2233270#M22995</guid>
      <dc:creator>Dave5</dc:creator>
      <dc:date>2022-06-27T18:12:34Z</dc:date>
    </item>
  </channel>
</rss>

