<?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 tHash (outtput, input) and shared connection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319262#M89532</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I'm new in Talend and i'm designing a job running child jobs (with tRunJob).&lt;/P&gt; 
&lt;P&gt;I'm sharing the connection of the main job with the child jobs.&lt;/P&gt; 
&lt;P&gt;It works fine exept for one child job where i'm storing records in a tHashOutput and then later reading those records with a tHashInput.&lt;/P&gt; 
&lt;P&gt;The tHashOutput and the tHashInput are in two different subjobs connected with "OnSubjobOk".&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;By running the application i get following message:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Exception in component tHashInput_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.RuntimeException: The hash is not initialized : The hash must exist before you read from it&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;If i transmit the whole context to the child-job and connect the database with the context variable (no more shared connection) it runs without error and i don't understand why!&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;here the screenshots of the application with the error:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Main job:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Main Job.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvE2.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135077iC2CB291034A9CEBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvE2.jpg" alt="0683p000009LvE2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Sharing a connection.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltmb.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129940i99F5ABEE7ED17738/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltmb.jpg" alt="0683p000009Ltmb.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Child Job &amp;lt;Test_SubJob&amp;gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Child_Job.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvAs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148650iBA9C1983D1341AE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvAs.jpg" alt="0683p000009LvAs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Using shared connection.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvFx.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151135i8DB3320A806BFACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvFx.jpg" alt="0683p000009LvFx.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the second version, the one without error i transmit the whole context to the child-Job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="tRunJob.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvNc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129729i3B2E6C4FC95D6D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvNc.jpg" alt="0683p000009LvNc.jpg" /&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;and in the child Job i connect with the context variables:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Connecting with context.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvOj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144298i3BBC71C7D86C30E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvOj.jpg" alt="0683p000009LvOj.jpg" /&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It would be great if someone could explain me why it doesn't work with the shared connection.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;Dominique&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:13:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-07T15:13:23Z</dc:date>
    <item>
      <title>tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319262#M89532</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I'm new in Talend and i'm designing a job running child jobs (with tRunJob).&lt;/P&gt; 
&lt;P&gt;I'm sharing the connection of the main job with the child jobs.&lt;/P&gt; 
&lt;P&gt;It works fine exept for one child job where i'm storing records in a tHashOutput and then later reading those records with a tHashInput.&lt;/P&gt; 
&lt;P&gt;The tHashOutput and the tHashInput are in two different subjobs connected with "OnSubjobOk".&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;By running the application i get following message:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Exception in component tHashInput_1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;java.lang.RuntimeException: The hash is not initialized : The hash must exist before you read from it&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;If i transmit the whole context to the child-job and connect the database with the context variable (no more shared connection) it runs without error and i don't understand why!&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;here the screenshots of the application with the error:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Main job:&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Main Job.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvE2.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135077iC2CB291034A9CEBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvE2.jpg" alt="0683p000009LvE2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Sharing a connection.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ltmb.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129940i99F5ABEE7ED17738/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ltmb.jpg" alt="0683p000009Ltmb.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;Child Job &amp;lt;Test_SubJob&amp;gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Child_Job.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvAs.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148650iBA9C1983D1341AE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvAs.jpg" alt="0683p000009LvAs.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Using shared connection.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvFx.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151135i8DB3320A806BFACA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvFx.jpg" alt="0683p000009LvFx.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the second version, the one without error i transmit the whole context to the child-Job:&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="tRunJob.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvNc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129729i3B2E6C4FC95D6D8A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvNc.jpg" alt="0683p000009LvNc.jpg" /&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; 
&lt;P&gt;&amp;nbsp;&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; 
&lt;P&gt;and in the child Job i connect with the context variables:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Connecting with context.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvOj.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144298i3BBC71C7D86C30E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvOj.jpg" alt="0683p000009LvOj.jpg" /&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It would be great if someone could explain me why it doesn't work with the shared connection.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance,&lt;/P&gt; 
&lt;P&gt;Dominique&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319262#M89532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T15:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319263#M89533</link>
      <description>&lt;P&gt;Are you sure you are specifying the "Use or Register a shared DB Connection" in both connections? &amp;nbsp;I saw in one of your screenshot on the GKT connection where you do not have that option ticked.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 22:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319263#M89533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-07T22:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319264#M89534</link>
      <description>&lt;P&gt;Hi iburtally,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes i'm sure, the connection you see without the shared connection is the one using just the context variables. It runs then without error but &amp;nbsp;I have to connect two times to the database; one time in the main job and one time in the child job. And it should be possible to connect just in the main job. And for all other child job it works, just not for this child job with the tHashOutput and tHashInput.&lt;/P&gt;
&lt;P&gt;Thank you for helping&lt;/P&gt;</description>
      <pubDate>Sat, 08 Jul 2017 01:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319264#M89534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-08T01:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319265#M89535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I don't want to sidetrack the main issue of this posting but whilst I do not have precisely the same issue (yet!), I do have a related issue and this is a perfect context to ask the question.&lt;/P&gt; 
&lt;P&gt;I am basically trying to do exactly the same as what is being done in this posting, i.e. create a HashOut in a parent job and use a connected HashIn in a child job. I need to do this because I am assembling data from many sources into a single table and to do all that in a single job will result in something of a monster job design. After scouring the postings and other sources the closest thing I can find to a definitive answer is that this cannot be done.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This posting suggests this scenario will work if the connection is set up correctly which now runs counter to my understanding.&lt;/P&gt; 
&lt;P&gt;I would be very grateful if someone could advise on this. Should I persist or do I need to take a back step and look at a different design approach to achieve this.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 14:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319265#M89535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-10T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319266#M89536</link>
      <description>&lt;P&gt;I am guessing the original poster's problem is that the database connection in the child job is not initializing, and so is putting no rows into the Hash. &amp;nbsp;I haven't used shared DB connections before, but from what I can see in the documentation, the components are configured correctly. &amp;nbsp;Maybe someone with more experience using shared connection could weigh in.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As for the followup question, you are correct in assuming that you cannot populate a Hash in a parent job and read from it in a child job. The original poster was attempting to share a database connection between jobs, not a Hash. &amp;nbsp;The Hash is just the component that threw an error.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319266#M89536</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-07-10T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: tHash (outtput, input) and shared connection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319267#M89537</link>
      <description>&lt;P&gt;Hi cterenzi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for trying to help and spending time on my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have yet the explanation of this issue but it isn't too critical because by direct connecting, and not sharing the connection, to the database, the child job can do what it has to do...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 08:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tHash-outtput-input-and-shared-connection/m-p/2319267#M89537</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-12T08:38:22Z</dc:date>
    </item>
  </channel>
</rss>

