<?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 One To Many problem in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338367#M106612</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 1 row in oracle DB i need to insert to Postgres tables &amp;nbsp;1 Partner&amp;nbsp;1-1 Partner&amp;nbsp;address (home/work address)&lt;/P&gt; 
&lt;P&gt;In Partner table have 1-1 foreign key &amp;nbsp;home_address/work_address&amp;nbsp;&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="Clipboard01.jpg" style="width: 485px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lqnv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149421i1D376C113BF67A82/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lqnv.jpg" alt="0683p000009Lqnv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Get Addresses ids from sp ("select nextval('public.addr_seq') as workaddress_id"/&lt;SPAN&gt;"select nextval('public.&lt;/SPAN&gt;&lt;SPAN&gt;addr&lt;/SPAN&gt;&lt;SPAN&gt;_seq') as&amp;nbsp;home&lt;/SPAN&gt;&lt;SPAN&gt;address&lt;/SPAN&gt;&lt;SPAN&gt;_id"&lt;/SPAN&gt;) tpostgressinput(lakcim_id/levcim_id)&lt;/P&gt; 
&lt;P&gt;In the map i set this ids.&lt;/P&gt; 
&lt;P&gt;When i insert 2 Address and 1 Partner table show the next errormessage :&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="Clipboard02.jpg" style="width: 762px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr3N.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147625i603E9741EC476AA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr3N.jpg" alt="0683p000009Lr3N.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Zoltan&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 05:34:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-11T05:34:44Z</dc:date>
    <item>
      <title>One To Many problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338367#M106612</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 1 row in oracle DB i need to insert to Postgres tables &amp;nbsp;1 Partner&amp;nbsp;1-1 Partner&amp;nbsp;address (home/work address)&lt;/P&gt; 
&lt;P&gt;In Partner table have 1-1 foreign key &amp;nbsp;home_address/work_address&amp;nbsp;&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="Clipboard01.jpg" style="width: 485px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lqnv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149421i1D376C113BF67A82/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lqnv.jpg" alt="0683p000009Lqnv.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Get Addresses ids from sp ("select nextval('public.addr_seq') as workaddress_id"/&lt;SPAN&gt;"select nextval('public.&lt;/SPAN&gt;&lt;SPAN&gt;addr&lt;/SPAN&gt;&lt;SPAN&gt;_seq') as&amp;nbsp;home&lt;/SPAN&gt;&lt;SPAN&gt;address&lt;/SPAN&gt;&lt;SPAN&gt;_id"&lt;/SPAN&gt;) tpostgressinput(lakcim_id/levcim_id)&lt;/P&gt; 
&lt;P&gt;In the map i set this ids.&lt;/P&gt; 
&lt;P&gt;When i insert 2 Address and 1 Partner table show the next errormessage :&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="Clipboard02.jpg" style="width: 762px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lr3N.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147625i603E9741EC476AA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lr3N.jpg" alt="0683p000009Lr3N.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Zoltan&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 05:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338367#M106612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-11T05:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: One To Many problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338368#M106613</link>
      <description>&lt;P&gt;Split your job to two subjobs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one to load CIM table and another one to load to partner table so that it will not violate the foreign key constraint.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 06:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338368#M106613</guid>
      <dc:creator>Sid3</dc:creator>
      <dc:date>2017-09-11T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: One To Many problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338369#M106614</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I create two job ? Sorry i missing something in my workflow, please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Job1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tOracleInput &amp;nbsp;-&amp;gt; tMap-&amp;gt;tPostgresOutput(Addr1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;gt;tPostgresOutput(Addr2)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Job2 &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;tOracleInput &amp;nbsp;-&amp;gt; tMap-&amp;gt;tPostgresOutput(Partner&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Job1-onSubJobOk&amp;gt;Job2&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;my question is how to pass parameters??? (PartnerId for 1st tOracleinput, parameter Addr1-2 for Job2 Partner)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Zoltan&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 06:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338369#M106614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-11T06:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: One To Many problem</title>
      <link>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338370#M106615</link>
      <description>use globalMap.get() and globalMap.put() functions.&lt;BR /&gt;&lt;BR /&gt;For example I am calculating a value Partnerid in subjob1. then I should put in a global variable.&lt;BR /&gt;&lt;BR /&gt;globalMap.put("partnered",row1.partnerid)&lt;BR /&gt;&lt;BR /&gt;in second subjob you can call this variable using below function.&lt;BR /&gt;if the variable is string&lt;BR /&gt;(String) globalMap.get("partnered")&lt;BR /&gt;&lt;BR /&gt;let me know if this helps&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/One-To-Many-problem/m-p/2338370#M106615</guid>
      <dc:creator>Sid3</dc:creator>
      <dc:date>2017-09-13T09:40:32Z</dc:date>
    </item>
  </channel>
</rss>

