<?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: Reading CSV files with different schemas in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345685#M113183</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each CSV file tFileList finds, I do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- tFileInputDelimited &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;schema: column01 (dynamic).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2- tExtractDynamicFields &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;input schema: column01 (dynamic).&lt;/LI&gt;&lt;LI&gt;output schema: columnA, columnB, columnC, columnD.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3- tDBOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way, no matter what comes in the CSV file, my Job will only consider what values come in these 4 columns. And if one or more of these columns are missing, the Job considers that column with the value "null".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 16:47:45 GMT</pubDate>
    <dc:creator>RMotta2408</dc:creator>
    <dc:date>2023-05-24T16:47:45Z</dc:date>
    <item>
      <title>Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345680#M113178</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to develop a Job to read CSV files from a folder and display the results in the same order always.&lt;/P&gt;&lt;P&gt;The problem is, there's no fixed schema for these files.&lt;/P&gt;&lt;P&gt;I mean, the files may come with different schemas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Column_A, Column_B, Column_C, Column_D&lt;/LI&gt;&lt;LI&gt;Column_B Column_D, Column_A, Column_C&lt;/LI&gt;&lt;LI&gt;Column_D, Column_B, Column_C, Column_A&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;... any possible combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: can the Job be dynamic enough so that, no matter the order of the columns, the files always gets read and the results displayed in the right order (A, B, C, D)? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:46:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345680#M113178</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2024-11-15T21:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345681#M113179</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;You need to use Dynamic schema, you have a similar requirement as described in this KB &lt;A href="https://community.talend.com/s/article/Dynamic-Schema-Dynamic-Input-Dynamic-Output-jZg7E" alt="https://community.talend.com/s/article/Dynamic-Schema-Dynamic-Input-Dynamic-Output-jZg7E" target="_blank"&gt;article&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:29:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345681#M113179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T11:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345682#M113180</link>
      <description>&lt;P&gt;Hi @Shicong Hong​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have a look RIGHT NOW!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:32:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345682#M113180</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-05-24T11:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345683#M113181</link>
      <description>&lt;P&gt;The link is inaccessible.  &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000hsqafAAA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146429i5202E41F491C1AB8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000hsqafAAA.png" alt="0695b00000hsqafAAA.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 11:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345683#M113181</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-05-24T11:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345684#M113182</link>
      <description>&lt;P&gt;@Rui Motta​&amp;nbsp;, sorry, I didn't notice that the article is only visible for internal staffs, let me think about what I can do, or I can do my best to provide an example.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345684#M113182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345685#M113183</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each CSV file tFileList finds, I do this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1- tFileInputDelimited &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;schema: column01 (dynamic).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2- tExtractDynamicFields &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;input schema: column01 (dynamic).&lt;/LI&gt;&lt;LI&gt;output schema: columnA, columnB, columnC, columnD.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3- tDBOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way, no matter what comes in the CSV file, my Job will only consider what values come in these 4 columns. And if one or more of these columns are missing, the Job considers that column with the value "null".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 16:47:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345685#M113183</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-05-24T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345686#M113184</link>
      <description>&lt;P&gt;It is a good solution! Thank you for your sharing! @Rui Motta​&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 02:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345686#M113184</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-25T02:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading CSV files with different schemas</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345687#M113185</link>
      <description>&lt;P&gt;My pleasure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rui&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 13:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-CSV-files-with-different-schemas/m-p/2345687#M113185</guid>
      <dc:creator>RMotta2408</dc:creator>
      <dc:date>2023-05-25T13:14:10Z</dc:date>
    </item>
  </channel>
</rss>

