<?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: reusing a tHashOutput after a 'clear cache after reading' checked in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277016#M52917</link>
    <description>Hello, 
&lt;BR /&gt;is there a way to reset tHash component after "Clearing cache after reading" ? 
&lt;BR /&gt;I need to reuse this memory in a loop. 
&lt;BR /&gt;When I put data again, after clearing cache, I have this execution error : "Exception in component tHashOutput_12 java.lang.NullPointerException" : 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt;(I hope the quality of the screenshot will be good ...) 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-20_093141_20170220-0240.jpeg" target="_blank"&gt;&amp;nbsp; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-20_093141_20170220-0240.jpeg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140186iE9547E9D54A41882/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJg.jpg" alt="0683p000009MDJg.jpg" /&gt;&lt;/span&gt;&lt;/A&gt;</description>
    <pubDate>Mon, 20 Feb 2017 10:48:35 GMT</pubDate>
    <dc:creator>ndy_Benoit</dc:creator>
    <dc:date>2017-02-20T10:48:35Z</dc:date>
    <item>
      <title>reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277009#M52910</link>
      <description>Hello, 
&lt;BR /&gt;I'm using tHash components in my job. 
&lt;BR /&gt;here is a part of this program : 
&lt;BR /&gt;&amp;nbsp;tHashInput1 -&amp;gt; tHashOutput2 
&lt;BR /&gt;parameters of the component tHashInput1 :&amp;nbsp; linked with component tHashOutput_1 and clear cache after reading is checked 
&lt;BR /&gt;is it possible to initialize later in the program the component tHashOutput_1, in order to reuse it in a loop ? 
&lt;BR /&gt;I have try that : tFixedFlowInput -&amp;gt; tHashOutput1 
&lt;BR /&gt;When I run the program, I have an error on this component tHashOutput1 "Exception in component tHashOutput_xx java.lang.NullPointerException ..." 
&lt;BR /&gt;With the tFixedFlowInput parameter&amp;nbsp; Number of rows=0 or Number of rows=1,&amp;nbsp; it doens't work.</description>
      <pubDate>Tue, 14 Feb 2017 16:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277009#M52910</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-14T16:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277010#M52911</link>
      <description>oups, &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; due to a pb with my browser, I have posted 4 times the same post. Sorry</description>
      <pubDate>Tue, 14 Feb 2017 16:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277010#M52911</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-14T16:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277011#M52912</link>
      <description>Hello, &lt;BR /&gt;no answer ? (even with multiple posts ... )</description>
      <pubDate>Wed, 15 Feb 2017 13:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277011#M52912</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-15T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277012#M52913</link>
      <description>I have found that Przemgk in the post "Problem with tHash in tLoop" had tried AdvancedMemoryHashFile object.
&lt;BR /&gt;Is it a good way ?
&lt;BR /&gt;it's very important for me.
&lt;BR /&gt;I'm waiting your ideas.</description>
      <pubDate>Thu, 16 Feb 2017 14:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277012#M52913</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-16T14:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277013#M52914</link>
      <description>It's quite difficult to understand what you want to do I'm afraid. Do you have a job layout you can post? Why are you wanting to loop, empty your hash and refill it? Can you give an example?&amp;nbsp;</description>
      <pubDate>Thu, 16 Feb 2017 15:38:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277013#M52914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-16T15:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277014#M52915</link>
      <description>Thank you for your answer,
&lt;BR /&gt;here&amp;nbsp; is a part the job.
&lt;BR /&gt;The aim of this jobs is to join data from a file with "Opened Alarm" with another file&amp;nbsp; "Closed Alarm".
&lt;BR /&gt;In order to improve speed, I have put each file, Closed alarm and Open Alarm in a tHash component, respectively in "mem_fic_lu" and "mem_alarme_ouverte".
&lt;BR /&gt;Each closed alarm are picked up, one by one, and compared to the opened alarms.
&lt;BR /&gt;So, I have a loop begining with a tFlowToIterate_1
&lt;BR /&gt;I put "mem_alarme_ouverte" (Clear cache after reading is checked) in a temporary memory "tmp_mem_alarme_ouverte".
&lt;BR /&gt; 
&lt;BR /&gt;
&lt;BR /&gt;Then, I try to reinitialize mem_alarme_ouverte, because I need to fill it later if I don't find the closed alarm searched in the memory "tmp_mem_alarme_ouverte"
&lt;BR /&gt; &amp;nbsp; 
&lt;BR /&gt;So, I'm reading the memory "tmp_mem_alarme_ouverte" and compare it to the closed alarm searched. 
&lt;BR /&gt;If I found it, I save the values in a file.
&lt;BR /&gt;If not found, I save the open alarm readen in the memory mem_alarm_ouverte (and put the closed alarm search in a file too).
&lt;BR /&gt; 
&lt;BR /&gt;After that, I go back to tFlowIterate_1 ....
&lt;BR /&gt;&amp;nbsp;
&lt;BR /&gt; 
&lt;BR /&gt;A I have done this job, I need to reuse the memory, if it's possible.
&lt;BR /&gt;I hope it's a bit clearer.
&lt;BR /&gt;Ben</description>
      <pubDate>Thu, 16 Feb 2017 17:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277014#M52915</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-16T17:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277015#M52916</link>
      <description>I don't seen my screenshots !!! 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-16_175852.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDFa.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137257i3DE243E76C7AC3C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDFa.jpg" alt="0683p000009MDFa.jpg" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-16_180701.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJW.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154634iA039DDFDA55B790C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJW.jpg" alt="0683p000009MDJW.jpg" /&gt;&lt;/span&gt;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-16_181046.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJb.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154996i28BCA252EE3EB305/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJb.jpg" alt="0683p000009MDJb.jpg" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/A&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-16_172510.jpg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MD4U.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146340i7EFAE6E499FA5533/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MD4U.jpg" alt="0683p000009MD4U.jpg" /&gt;&lt;/span&gt;&lt;/A&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277015#M52916</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-16T17:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277016#M52917</link>
      <description>Hello, 
&lt;BR /&gt;is there a way to reset tHash component after "Clearing cache after reading" ? 
&lt;BR /&gt;I need to reuse this memory in a loop. 
&lt;BR /&gt;When I put data again, after clearing cache, I have this execution error : "Exception in component tHashOutput_12 java.lang.NullPointerException" : 
&lt;BR /&gt;&amp;nbsp; 
&lt;BR /&gt;(I hope the quality of the screenshot will be good ...) 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-20_093141_20170220-0240.jpeg" target="_blank"&gt;&amp;nbsp; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/281353/2017-02-20_093141_20170220-0240.jpeg" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJg.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140186iE9547E9D54A41882/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJg.jpg" alt="0683p000009MDJg.jpg" /&gt;&lt;/span&gt;&lt;/A&gt;</description>
      <pubDate>Mon, 20 Feb 2017 10:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277016#M52917</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-20T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277017#M52918</link>
      <description>If you are wanting reuse the tHash component simply for looping purposes without adding to the dataset, you could put the subjob inside the loop in a child job. Every time the loop iterates, the child job would be fired and the tHash component would be re-initialised. This should get round your problem of trying to use the tHash again after it has been cleared down.&amp;nbsp;</description>
      <pubDate>Mon, 20 Feb 2017 14:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277017#M52918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-20T14:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277018#M52919</link>
      <description>In the loop, the tHash memory should have rows which number depends on the equality or not between opened and closed alarms. 
&lt;BR /&gt;I need to use each new version of the memory, after the loop. 
&lt;BR /&gt;So I can't call a child job if I can't bring back to the main job this memory. 
&lt;BR /&gt;&amp;nbsp;What about using the class AdvancedMemoryHashFile as I have seen it in another post ?</description>
      <pubDate>Mon, 20 Feb 2017 17:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277018#M52919</guid>
      <dc:creator>ndy_Benoit</dc:creator>
      <dc:date>2017-02-20T17:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: reusing a tHashOutput after a 'clear cache after reading' checked</title>
      <link>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277019#M52920</link>
      <description>You can send data back to the main job using the tBufferOutput and import data into the child job using context variables or one of the data input components.
&lt;BR /&gt;You can use Java to make this easier (if you are happy with Java). Store you data in an ArrayList or HashMap using tJavaFlex. I have written a tutorial on something completely unrelated which covers this. It might help.&amp;nbsp;
&lt;A href="https://www.rilhia.com/tutorials/load-xml-files-batches-records" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/load-xml-files-batches-records&lt;/A&gt;</description>
      <pubDate>Mon, 20 Feb 2017 23:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/2277019#M52920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-20T23:31:50Z</dc:date>
    </item>
  </channel>
</rss>

