<?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: If table is empty then do nothing else do in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352146#M118581</link>
    <description>Hi&lt;BR /&gt;I think u need to try tWaitForSqlData</description>
    <pubDate>Wed, 21 Sep 2011 18:35:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-21T18:35:56Z</dc:date>
    <item>
      <title>If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352143#M118578</link>
      <description>At the moment I try to optimize a bidirectional connection between an interface database and a Sage database.
&lt;BR /&gt;I nearly solved the whole problem. I still have one big problem.
&lt;BR /&gt;The data goes from one mysql table to one or more mssql tables. If there is no content in the mysql databas the job
&lt;BR /&gt;should not run. If there is content the job should run.
&lt;BR /&gt;At the moment the job runs under an inifinite loop. This is no good solution.
&lt;BR /&gt;Where and how to place the statement?</description>
      <pubDate>Sat, 16 Nov 2024 12:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352143#M118578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352144#M118579</link>
      <description>Hi 
&lt;BR /&gt;To determine a table is empty or not, only select one row from the table, for example: 
&lt;BR /&gt;tMysqlInput_1--main--tJavaRow 
&lt;BR /&gt; | 
&lt;BR /&gt;tJava---runIf---next processing 
&lt;BR /&gt;on tMysqlInput_1, write the query as below: 
&lt;BR /&gt;"select * from tableName limit 1" 
&lt;BR /&gt;There is a global variable ((Integer)globalMap.get("tMysqlInput_1_NB_LINE")) counts the total number of rows are queried. 
&lt;BR /&gt;on tJava: 
&lt;BR /&gt;if(((Integer)globalMap.get("tMysqlInput_1_NB_LINE"))&amp;gt;0){ 
&lt;BR /&gt;globalMap.put("isContinue",true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("isContinue", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;set the condition of runIf as: 
&lt;BR /&gt;(Boolean)globalMap.get("isContinue") 
&lt;BR /&gt;The next processing will fires if the table has at least one row. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 20 Sep 2011 02:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352144#M118579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-20T02:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352145#M118580</link>
      <description>Thank you, for your help! But how to integrate the solution in my case?</description>
      <pubDate>Wed, 21 Sep 2011 16:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352145#M118580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-21T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352146#M118581</link>
      <description>Hi&lt;BR /&gt;I think u need to try tWaitForSqlData</description>
      <pubDate>Wed, 21 Sep 2011 18:35:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352146#M118581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-21T18:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352147#M118582</link>
      <description>Great idea, but where to place in my job?</description>
      <pubDate>Thu, 22 Sep 2011 11:46:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352147#M118582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-22T11:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: If table is empty then do nothing else do</title>
      <link>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352148#M118583</link>
      <description>Hi ,&lt;BR /&gt;You can use this instead of infiniteLoop, as the loop will only start when there is data in the table or data is inserted.</description>
      <pubDate>Fri, 23 Sep 2011 15:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/If-table-is-empty-then-do-nothing-else-do/m-p/2352148#M118583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-23T15:11:45Z</dc:date>
    </item>
  </channel>
</rss>

