<?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 Route an empty recordset from tParseRecordSet in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Route-an-empty-recordset-from-tParseRecordSet/m-p/2486142#M141377</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is a job with uses tDBSP with 3 IN params and then we parse the recordset with tParseRecordSet.&lt;BR /&gt;Now I want to catch what IN params do not return a record.&lt;/P&gt;
&lt;P&gt;I thought it was easy with&amp;nbsp;((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) but this returns null.&lt;/P&gt;
&lt;P&gt;Tried with a tMap to route with&amp;nbsp;((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) == null but this does not route anything.&lt;/P&gt;
&lt;P&gt;Is there another way?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2024 09:16:23 GMT</pubDate>
    <dc:creator>JayQueue</dc:creator>
    <dc:date>2024-10-09T09:16:23Z</dc:date>
    <item>
      <title>Route an empty recordset from tParseRecordSet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Route-an-empty-recordset-from-tParseRecordSet/m-p/2486142#M141377</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is a job with uses tDBSP with 3 IN params and then we parse the recordset with tParseRecordSet.&lt;BR /&gt;Now I want to catch what IN params do not return a record.&lt;/P&gt;
&lt;P&gt;I thought it was easy with&amp;nbsp;((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) but this returns null.&lt;/P&gt;
&lt;P&gt;Tried with a tMap to route with&amp;nbsp;((Integer)globalMap.get("tParseRecordSet_1_NB_LINE")) == null but this does not route anything.&lt;/P&gt;
&lt;P&gt;Is there another way?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 09:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Route-an-empty-recordset-from-tParseRecordSet/m-p/2486142#M141377</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2024-10-09T09:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Route an empty recordset from tParseRecordSet</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Route-an-empty-recordset-from-tParseRecordSet/m-p/2486159#M141378</link>
      <description>&lt;P&gt;Fixed it with&lt;/P&gt;
&lt;PRE&gt;net.sourceforge.jtds.jdbc.CachedResultSet sfresultset = (net.sourceforge.jtds.jdbc.CachedResultSet) input_row.resultset; &lt;BR /&gt;if (!sfresultset.next()) { &lt;BR /&gt;    System.out.println("ResultSet is empty for " + input_row.fname + " " + globalMap.get("customerLastName")); &lt;BR /&gt;} else { &lt;BR /&gt;    System.out.println("ResultSet is not empty for " + input_row.fname); &lt;BR /&gt;}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 10:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Route-an-empty-recordset-from-tParseRecordSet/m-p/2486159#M141378</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2024-10-09T10:26:55Z</dc:date>
    </item>
  </channel>
</rss>

