<?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: TrunJob stuck after the first iterate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349990#M116897</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There are some global variables that counts the total number of processed rows, eg:&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tDBOutput_1_NB_LINE_INSERTED"))&lt;/P&gt;&lt;P&gt;Open the Outline viewer, you will see all the global variables available for the component. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huzpiAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137731iAE01CA5C72317FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huzpiAAA.jpg" alt="0695b00000huzpiAAA.jpg" /&gt;&lt;/span&gt;You can simply drag &amp;amp; drop the global variable from Outline to the component where you want to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For debugging, you can print these global variables on a tJava in next subjob to see how many rows were processed, and print the status of each step, &lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;...&amp;gt;tPostGresqlOutput_1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tJava:&lt;/P&gt;&lt;P&gt;System.out.println("the xxx process is finished!");&lt;/P&gt;&lt;P&gt;System.out.println("the total number of rows are inserted is: "+((Integer)globalMap.get("tDBOutput_1_NB_LINE_INSERTED")));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 08:51:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-19T08:51:06Z</dc:date>
    <item>
      <title>TrunJob stuck after the first iterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349989#M116896</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I've a problem with the TflowToIterate component:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huzk9AAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142026i8B7BE1459E7E0EC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huzk9AAA.png" alt="0695b00000huzk9AAA.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run the job, it only execute the first time, and then got stuck without giving an error; here the whole job that need to be itereated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huzkEAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151777iFEC977A0FB133CD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huzkEAAQ.png" alt="0695b00000huzkEAAQ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huzkJAAQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146998i804B499EB7377B43/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huzkJAAQ.png" alt="0695b00000huzkJAAQ.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data load is not that big for each step, a mean of 40k records. It gives no error and I can't understand what's stopping it. &lt;/P&gt;&lt;P&gt;Any clues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, is there a way to check what che child job is doing (seeing how many rows were processed), and not being able to see only the father job? thanks&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349989#M116896</guid>
      <dc:creator>Serphentelm</dc:creator>
      <dc:date>2024-11-15T21:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: TrunJob stuck after the first iterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349990#M116897</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There are some global variables that counts the total number of processed rows, eg:&lt;/P&gt;&lt;P&gt;((Integer)globalMap.get("tDBOutput_1_NB_LINE_INSERTED"))&lt;/P&gt;&lt;P&gt;Open the Outline viewer, you will see all the global variables available for the component. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000huzpiAAA.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137731iAE01CA5C72317FA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000huzpiAAA.jpg" alt="0695b00000huzpiAAA.jpg" /&gt;&lt;/span&gt;You can simply drag &amp;amp; drop the global variable from Outline to the component where you want to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For debugging, you can print these global variables on a tJava in next subjob to see how many rows were processed, and print the status of each step, &lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;...&amp;gt;tPostGresqlOutput_1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tJava:&lt;/P&gt;&lt;P&gt;System.out.println("the xxx process is finished!");&lt;/P&gt;&lt;P&gt;System.out.println("the total number of rows are inserted is: "+((Integer)globalMap.get("tDBOutput_1_NB_LINE_INSERTED")));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 08:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349990#M116897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-19T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: TrunJob stuck after the first iterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349991#M116898</link>
      <description>&lt;P&gt;Hi @matteo marchesi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To watch what is going on the subjob, you could enable Log4j at DEBUG or TRACES level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hv0X1AAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149494i402CBCF97A0B4974/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hv0X1AAI.png" alt="0695b00000hv0X1AAI.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To enable Log4j on your job you need to activate Log4j at project level (File -&amp;gt; Edit project settings -&amp;gt; Log4j -&amp;gt; Activate log4j in components).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 13:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TrunJob-stuck-after-the-first-iterate/m-p/2349991#M116898</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-06-19T13:43:36Z</dc:date>
    </item>
  </channel>
</rss>

