<?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 process multiple files with different schema in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260295#M41471</link>
    <description>&lt;P&gt;Hi there ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to the talend and stuck in one of the issue when trying to upload data in database . I invoke multiple Rest services which generate files in different format. Most of the columns in files are same but few of them had different column name and some of the files has few missing columns . here is the example of scheme structure of 2 files generated .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example - tInputDelimited&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tFileInputDelimited_1 - ColumnName ( FirstName , Company , Account_Country)&lt;/P&gt;
&lt;P&gt;tFileInputDelimited_2 - ColumnName ( FirstName , Country )&lt;/P&gt;
&lt;P&gt;( Here Account_country and Country are the same type of columns , but both files has different name of columns . Company column is missing from 2nd file) .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to merge both files together and&amp;nbsp;want to produce tFileOutputDelimited like this -&lt;/P&gt;
&lt;P&gt;ColumnName ( FirstName , Company , CountryOfAccount)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attach is PNG file for the example talend's job .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Feb 2019 00:08:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-13T00:08:08Z</dc:date>
    <item>
      <title>process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260295#M41471</link>
      <description>&lt;P&gt;Hi there ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to the talend and stuck in one of the issue when trying to upload data in database . I invoke multiple Rest services which generate files in different format. Most of the columns in files are same but few of them had different column name and some of the files has few missing columns . here is the example of scheme structure of 2 files generated .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example - tInputDelimited&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tFileInputDelimited_1 - ColumnName ( FirstName , Company , Account_Country)&lt;/P&gt;
&lt;P&gt;tFileInputDelimited_2 - ColumnName ( FirstName , Country )&lt;/P&gt;
&lt;P&gt;( Here Account_country and Country are the same type of columns , but both files has different name of columns . Company column is missing from 2nd file) .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to merge both files together and&amp;nbsp;want to produce tFileOutputDelimited like this -&lt;/P&gt;
&lt;P&gt;ColumnName ( FirstName , Company , CountryOfAccount)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attach is PNG file for the example talend's job .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone please help .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 00:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260295#M41471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-13T00:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260296#M41472</link>
      <description>&lt;P&gt;You can merge two flows using &lt;EM&gt;tUnite&lt;/EM&gt;, only the schema needs to be identical. For that, you need to add a third column&amp;nbsp;&lt;SPAN&gt;&lt;EM&gt;Account_Country&lt;/EM&gt; to the&amp;nbsp;&lt;EM&gt;tFileInputDelimited_2&amp;nbsp;&lt;/EM&gt;using either a tMap or a tJavaRow (let me know if you don't know how to do that).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Keep in mind that column names don't matter, only the order. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 08:25:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260296#M41472</guid>
      <dc:creator>navds</dc:creator>
      <dc:date>2019-02-13T08:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260297#M41473</link>
      <description>&lt;P&gt;Hi navds ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reply . I tried to add tMap but I am not able to assign values properly .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInputDelimited_1 columns&amp;nbsp; - FIRSTNAME , COMPANY , ACCOUNT_COUNTRY, LASTNAME&lt;/P&gt;&lt;P&gt;tFileInputDelimited_2 columns -&amp;nbsp; FIRSTNAME, COUNTRY, LASTNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used tMap to add&amp;nbsp;COMPANY column in&amp;nbsp;tFileInputDelimited_2&amp;nbsp; between&amp;nbsp; FIRSTNAME and COUNTRY so schema is in sync with&amp;nbsp;tFileInputDelimited_1 .&lt;/P&gt;&lt;P&gt;Value of&amp;nbsp;&amp;nbsp;COMPANY&amp;nbsp; will be&amp;nbsp; "null"&amp;nbsp; in&amp;nbsp;tFileInputDelimited_2&amp;nbsp; File .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but the output result I am getting is weird .&lt;/P&gt;&lt;P&gt;In tFileOutputDelimited File ,&amp;nbsp; &amp;nbsp;"Country" value is getting assign to&amp;nbsp;COUNTRY_NM&amp;nbsp; Column . So here is the column and value structure in new ouptput file I am getting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileOutputDelimited&lt;/P&gt;&lt;P&gt;column ------------value&lt;/P&gt;&lt;P&gt;FIRSTNAME -----FIRSTNAME&lt;/P&gt;&lt;P&gt;COMPANY --&amp;nbsp;COUNTRY&lt;/P&gt;&lt;P&gt;COUNTRY --&amp;nbsp;LASTNAME&lt;/P&gt;&lt;P&gt;LASTNAME --COMPANY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so the values are not shifting according to new column added and getting assign to it's old column .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is png file for tmap I have created .&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;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lud6"&gt;CaptureTmap.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 13 Feb 2019 18:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260297#M41473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-13T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260298#M41474</link>
      <description>&lt;P&gt;I'm kinda lost in the explanation, I don't know what happened to the column "company". I advise you to use frequently tLogRow at each stage of your flow to identify what causes this mismatch. I suspect it comes from the input (maybe even a mistake at the tExtractJsonFields, maybe).&lt;/P&gt; 
&lt;P&gt;Anyway, here is a simple demo of how it should be:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The job structure" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M35b.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152887i7C78A0666208751A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M35b.png" alt="0683p000009M35b.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The job structure&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap_1" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M32Y.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140722i8A48856AFF71CD68/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M32Y.png" alt="0683p000009M32Y.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tMap_1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap_2" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M340.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139128iC5087BDCA46683D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M340.png" alt="0683p000009M340.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tMap_2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This gives the following output. Note the value of each column.&lt;/P&gt; 
&lt;PRE&gt;.------------------+----------------+----------------.
|                     tLogRow_1                      |
|=-----------------+----------------+---------------=|
|FirstName         |Company         |Account_Country |
|=-----------------+----------------+---------------=|
|A firstname from 1|A Company from 1|A country from 1|
'------------------+----------------+----------------'

.------------------+----------------.
|             tLogRow_2             |
|=-----------------+---------------=|
|FirstName         |Country         |
|=-----------------+---------------=|
|A firstname from 2|A country from 2|
'------------------+----------------'

.------------------+----------------+----------------.
|                     tLogRow_3                      |
|=-----------------+----------------+---------------=|
|firstname         |company         |country         |
|=-----------------+----------------+---------------=|
|A firstname from 1|A Company from 1|A country from 1|
|A firstname from 2|null            |A country from 2|
'------------------+----------------+----------------'&lt;/PRE&gt; 
&lt;P&gt;I hope this help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Navds&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 20:12:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260298#M41474</guid>
      <dc:creator>navds</dc:creator>
      <dc:date>2019-02-13T20:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260299#M41475</link>
      <description>&lt;P&gt;&lt;SPAN&gt;HI Navds ,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tLogRow_3 output doesn't come in the format as explained in PIC-1 . It comes like PIC-2 .&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;It is not assigning&amp;nbsp;values in proper column and that's one of my issue &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;another one is&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I am using Iterator to process multiple files ( more then 2) as shown in pic3 . How to use tMap and tUnite there and merge files together .&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;PIC-1&lt;/SPAN&gt;&lt;/P&gt; 
&lt;PRE&gt;------------------+----------------+----------------.
|                     tLogRow_3                      |
|=-----------------+----------------+---------------=|
|firstname         |company         |country         |
|=-----------------+----------------+---------------=|
|A firstname from 1|A Company from 1|A country from 1|
|A firstname from 2|null            |A country from 2|
'------------------+----------------+----------------'&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;PIC-2&lt;/P&gt; 
&lt;PRE&gt;------------------+----------------+----------------.
|                     tLogRow_3                      |
|=-----------------+----------------+---------------=|
|firstname         |company         |country         |
|=-----------------+----------------+---------------=|
|A firstname from 1|A Company from 1|A country from 1|
|A firstname from 2|A country from 2                 |
'------------------+----------------+----------------'&lt;/PRE&gt; 
&lt;P&gt;PIC-3&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_talend.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2z0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143123i60AB74F4314B1D86/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2z0.png" alt="0683p000009M2z0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 21:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260299#M41475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-13T21:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: process multiple files with different schema</title>
      <link>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260300#M41476</link>
      <description>The iteration should not pose a problem, you just need to check "Append" in tFileOutputDelimited. Eventually, you need to clear the content of this file on PreJob if you don't want to keep previous values.</description>
      <pubDate>Thu, 14 Feb 2019 07:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/process-multiple-files-with-different-schema/m-p/2260300#M41476</guid>
      <dc:creator>navds</dc:creator>
      <dc:date>2019-02-14T07:56:56Z</dc:date>
    </item>
  </channel>
</rss>

