<?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: twaitforsql and java.sql.SQLException: Result set after last row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/twaitforsql-and-java-sql-SQLException-Result-set-after-last-row/m-p/2253088#M36543</link>
    <description>use count(*) in place of 1 then test value into a tmap then use tflow to iterate tu link to your job.</description>
    <pubDate>Fri, 20 Sep 2019 12:42:31 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-09-20T12:42:31Z</dc:date>
    <item>
      <title>twaitforsql and java.sql.SQLException: Result set after last row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/twaitforsql-and-java-sql-SQLException-Result-set-after-last-row/m-p/2253087#M36542</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I have a scenario where I need to run a set of jobs depending on a output of a sql, so i'm using twaitforsqldata. the SQL has to be executed only once, only if it returns a row, the flow should proceed otherwise it has to skip all jobs. when i use the below sql in twaitforsqldata, i'm getting the error&amp;nbsp; "java.sql.SQLException: Result set after last row", when i searched it seems like java produces this error when the sql returns no rows. Even when there is a option to check for Zero rows in twaitforsqldata, why am I getting this error? and is there any way to handle this in twaitforsqldata ( at this moment i don't want to use a java component)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SELECT '1' col FROM table1 WHERE (select somefunction('dfd') from dual) = 'YES'&lt;/PRE&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;mj&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 16:00:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/twaitforsql-and-java-sql-SQLException-Result-set-after-last-row/m-p/2253087#M36542</guid>
      <dc:creator>borrisbeck</dc:creator>
      <dc:date>2019-09-19T16:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: twaitforsql and java.sql.SQLException: Result set after last row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/twaitforsql-and-java-sql-SQLException-Result-set-after-last-row/m-p/2253088#M36543</link>
      <description>use count(*) in place of 1 then test value into a tmap then use tflow to iterate tu link to your job.</description>
      <pubDate>Fri, 20 Sep 2019 12:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/twaitforsql-and-java-sql-SQLException-Result-set-after-last-row/m-p/2253088#M36543</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-20T12:42:31Z</dc:date>
    </item>
  </channel>
</rss>

