<?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: Data Migration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292291#M65387</link>
    <description>It's not the solution.&lt;BR /&gt;Look at the image, I need to split some attributes of a row in Base_ User and other attributes in Base_LegalEntity.&lt;BR /&gt;If I do as you suggest me, I cannot load other data of "row1" of the same record because there is any relations. I need to do this job rows per rows</description>
    <pubDate>Wed, 09 Aug 2017 15:57:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-09T15:57:09Z</dc:date>
    <item>
      <title>Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292289#M65385</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;i have a problem (this is only a synthesis). I need to split data from a single mysql table (lar) to 2 tables (Base_User, Base_LegalEntity) and this is sample.&lt;/P&gt;&lt;P&gt;The problem is that Base_Users table have a key (autoincrement) and this key referred to &lt;SPAN&gt;Base_LegalEntity&amp;nbsp;&lt;/SPAN&gt;so, when data will stored from Lar&amp;nbsp;to Base_Users I need of this Key and store it on &lt;SPAN&gt;Base_LegalEntity&lt;/SPAN&gt; table with the other information.&lt;/P&gt;&lt;P&gt;How do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Look at the attached image: the problem is that "ID" of "Legal" must be the same value generated as autoincrement in the "ID" of User during job migration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292289#M65385</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T15:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292290#M65386</link>
      <description>&lt;P&gt;Easy.&lt;/P&gt;&lt;P&gt;1) Load the data into Base_User first. The auto increment key will be generated for you.&lt;/P&gt;&lt;P&gt;2) Read the contents of the Base_User table and load it to the Base_LegalEntity table&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 15:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292290#M65386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T15:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292291#M65387</link>
      <description>It's not the solution.&lt;BR /&gt;Look at the image, I need to split some attributes of a row in Base_ User and other attributes in Base_LegalEntity.&lt;BR /&gt;If I do as you suggest me, I cannot load other data of "row1" of the same record because there is any relations. I need to do this job rows per rows</description>
      <pubDate>Wed, 09 Aug 2017 15:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292291#M65387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292292#M65388</link>
      <description>&lt;P&gt;Sorry, I didn't see that. It is still relatively easy though.&lt;/P&gt; 
&lt;P&gt;Your database is responsible for your auto increment key of the User table. Therefore in order to get that, the User data needs to be loaded first. However, I notice that not all of your fields are being used. I also notice your input table has an "Id" field. So I would recommend the following....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) Load your User table first as before, but add the source table's Id column to an empty row.&lt;/P&gt; 
&lt;P&gt;2) Read that table back into Talend and join it (using a tMap) to your source table.&lt;/P&gt; 
&lt;P&gt;3) Use the data combined in step 2 to write to your Legal table&lt;/P&gt; 
&lt;P&gt;4) Remove the source "Id" field data from your User table&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It sounds long winded, but since you are relying on your DB for the auto increment (which is the best thing to do), you do not really many choices here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 16:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292292#M65388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T16:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292293#M65389</link>
      <description>Thank you, I would like to avoid it (it will be the last solution). Is there any other solution (with the use of other Talend components also) to do that? I am not a Talend expert unfortunately.</description>
      <pubDate>Wed, 09 Aug 2017 16:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292293#M65389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T16:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292294#M65390</link>
      <description>&lt;P&gt;The problem you have is that the database is controlling your keys. While in the tMap (where your image is showing) you have absolutely no way of predicting your Ids with certainty. Of course, there is another way you could approach this if you are more familiar with SQL. You could create a procedure in your database to insert your data to the User table, retrieve the key and then insert the other data into the Legal table with the key generated in the insert. Your procedure can be called via Talend where could supply all of the data in one go. This might be a way to go for you as it will make the Talend job less complex, but you will need to handle the logic in the DB.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I guess you *could* try and handle the sequence in Talend, switch off the autoincrement functionality during the insert and then swicth it back on again after the insert.....but that sounds like a bit too much of a faff to be honest.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 17:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292294#M65390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-09T17:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292295#M65391</link>
      <description>&lt;P&gt;Why not use sequence (Talend sequence) as generated auto incremented ID?&lt;BR /&gt;&lt;BR /&gt;as I can see, it MySQL, MySQL definitely&amp;nbsp;&amp;nbsp;allow this,&lt;/P&gt; 
&lt;P&gt;but as well most of databases allow disable check and allow insert into auto-inceremented column&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;something like this :&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-10 at 3.40.49 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lw7y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131971i12001EE58FF05808/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lw7y.png" alt="0683p000009Lw7y.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 04:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292295#M65391</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-10T04:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292296#M65392</link>
      <description>I cannot do that because it's a live migration and i should change all applications to manage the autoincrement value to avoid problem with DB cluster. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt; I prefer to avoid the use of SQL Store Procedure. I know it, but it's more easy to use a temporary column (as you have suggested me).</description>
      <pubDate>Thu, 10 Aug 2017 08:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292296#M65392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-10T08:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292297#M65393</link>
      <description>&lt;P&gt;it always compromise - each solution have and pluses and minuses&lt;BR /&gt;&lt;BR /&gt;I mean more simple way - if You can arrange down-time, You are just need stop other application for short time:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;You do not need change no one of other application&lt;/LI&gt;
 &lt;LI&gt;You just need start Your "Talend ID" out of the current range, after finish MySQL arrange auto increment to new value&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I don't know how big You table and how powerful Your server,&amp;nbsp;so it could be fast, could be not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 12:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292297#M65393</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-10T12:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Migration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292298#M65394</link>
      <description>&lt;P&gt;Not the fastest solution, but I usually solve this as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tdbConnection&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;|&lt;/P&gt;&lt;P&gt;onSubjOk&lt;/P&gt;&lt;P&gt;&amp;nbsp; |&lt;/P&gt;&lt;P&gt;tdbInput -- FlowToIterate -- tMap -- tdbOutput1 (Base_user) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- onComponentOk -- tdbLastInsertId -- tSetGlobalVar &amp;nbsp;&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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -- tHashOut (Base_LegalEntity) &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;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |--- OnSubJobOk -- tHashIn -- tMap-- tdbOutput2 (&lt;SPAN&gt;Base_LegalEntity&lt;/SPAN&gt;)&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;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;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;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;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; onSubjobOk --&amp;gt; tdbCommit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Subjob1&lt;/P&gt;&lt;P&gt;First make a FlowToIterate so Every record is inserted seperately&lt;/P&gt;&lt;P&gt;Then map the input to the desired output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Insert the Base_User in the table and the Base_LegalEntitiy in a Hash&lt;/P&gt;&lt;P&gt;Subjob2&lt;/P&gt;&lt;P&gt;then "on component Ok" on the inserted record get the latest inserted ID and put it in a global Variable&lt;/P&gt;&lt;P&gt;Subjob3&lt;/P&gt;&lt;P&gt;then Read from the Hash, use a tMap to get the newly inserted ID from the globalVar&lt;/P&gt;&lt;P&gt;Insert into the Base_LegalEntity table.&lt;/P&gt;&lt;P&gt;If all successful, do a commit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Dont forget to clear the Hash after reading&lt;/P&gt;&lt;P&gt;Note2: Dont commit&amp;amp;close&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 14:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-Migration/m-p/2292298#M65394</guid>
      <dc:creator>Aukema</dc:creator>
      <dc:date>2017-08-10T14:48:59Z</dc:date>
    </item>
  </channel>
</rss>

