<?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: Error with tHashInput in a Loop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198225#M1639</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Here is a related topic about:&lt;A title="https://community.talend.com/t5/Design-and-Development/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/89790" href="https://community.qlik.com/s/feed/0D53p00007vCneeCAC" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/89790&lt;/A&gt; and let us know if it helps.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jan 2019 08:31:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-01-17T08:31:09Z</dc:date>
    <item>
      <title>Error with tHashInput in a Loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198224#M1638</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please help me with the following issue ?&lt;/P&gt; 
&lt;P&gt;I have a simple job in which:&lt;/P&gt; 
&lt;P&gt;1. Cache initial data in tHashOutput&lt;/P&gt; 
&lt;P&gt;2. Do some stuff in a Loop - use cached data from point 1 (tHashOutput) as a lookup for tMap. Save results to tHashOutput_2 in order to reuse the new values in tMap ( tHashInput&amp;nbsp; &amp;nbsp;as a lookup) in consecutive iterations.&lt;/P&gt; 
&lt;P&gt;The reason I use tJava (just a dummy task) with OnComponentOk is so that Lookup in tMap was reloaded on each iteration.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tHashOutput_2 has "Link with a tHashOutput" set to tHashOutput_1.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If tHashInput_1&amp;nbsp;has unchecked box "Clear cache after reading" then the job succeeds execpt that the tHashInput is not cleared, so there are more rows then are supposed to be&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If tHashInput_1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;has checked box "Clear cache after reading" then the job fails with the following error in the first iteration:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" color="#FF6600"&gt;&lt;SPAN&gt;Exception in component tHashOutput_2 (test3_Copy)&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)&lt;BR /&gt;at org.talend.designer.components.hashfile.common.MapHashFile.getAdvancedMemoryHashFile(MapHashFile.java:51)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Does anybody know how to fix it ? I read somewhere that playing with&amp;nbsp;AdvancedMemoryHashFile is an option but I have no idea how to implement this.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thank you in advance. I would appreciate some insights. I need to cache values in memory instead of going to the for example database layer.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Below I enclose&amp;nbsp;pictures:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="caputre.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M22R.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138664iF471926C2A7A2492/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M22R.png" alt="0683p000009M22R.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Przechwytywanie.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1p4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156567i28212251417EED2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1p4.png" alt="0683p000009M1p4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 21:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198224#M1638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-16T21:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error with tHashInput in a Loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198225#M1639</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Here is a related topic about:&lt;A title="https://community.talend.com/t5/Design-and-Development/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/89790" href="https://community.qlik.com/s/feed/0D53p00007vCneeCAC" target="_self"&gt;https://community.talend.com/t5/Design-and-Development/reusing-a-tHashOutput-after-a-clear-cache-after-reading-checked/m-p/89790&lt;/A&gt; and let us know if it helps.&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 08:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198225#M1639</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-17T08:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error with tHashInput in a Loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198226#M1640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the tHashInput_1, ensure the Clear cache after reading is NOT ticked.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Remember that should clear the cache after the loop, to ensure it doesn't hold on to the memory.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tHashInput (with clear cache) -&amp;gt; tJavaRow (that does nothing).&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 16:10:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198226#M1640</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-01-17T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error with tHashInput in a Loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198227#M1641</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;/P&gt;&lt;P&gt;But the requirement is that I need to clear the tHashInput within each reload - if I uncheck "Clear cache after reading" then the rows in tHashInput will be appended (in first loop 2 rows, in second 3 rows and so on).&lt;/P&gt;&lt;P&gt;I attach this job.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuL9"&gt;hashJob.zip&lt;/A&gt;</description>
      <pubDate>Fri, 18 Jan 2019 19:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-with-tHashInput-in-a-Loop/m-p/2198227#M1641</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-18T19:23:09Z</dc:date>
    </item>
  </channel>
</rss>

