<?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 Eliminate extra columns from file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207381#M7054</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement where the source file can have few extra columns than what is present in a table. I need to eliminate the extra columns and only load based on the metadata from the table.&lt;/P&gt;
&lt;P&gt;Explored the option of Dynamic datatype but the table would be pre defined and hence cannot drop the table and recreate. Is there any workaround for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Source File :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Col1,Col2,Col3,Col4,Col5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table Metadata:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Col1,Col2,Col3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to eliminate Col4 &amp;amp; Col5 from loading. This could be 'n' number of columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:12:24 GMT</pubDate>
    <dc:creator>Gunner49</dc:creator>
    <dc:date>2024-11-16T02:12:24Z</dc:date>
    <item>
      <title>Eliminate extra columns from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207381#M7054</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement where the source file can have few extra columns than what is present in a table. I need to eliminate the extra columns and only load based on the metadata from the table.&lt;/P&gt;
&lt;P&gt;Explored the option of Dynamic datatype but the table would be pre defined and hence cannot drop the table and recreate. Is there any workaround for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Source File :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Col1,Col2,Col3,Col4,Col5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Table Metadata:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Col1,Col2,Col3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need to eliminate Col4 &amp;amp; Col5 from loading. This could be 'n' number of columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207381#M7054</guid>
      <dc:creator>Gunner49</dc:creator>
      <dc:date>2024-11-16T02:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate extra columns from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207382#M7055</link>
      <description>1) you are using dynamic metadata type or specific to table ? 
&lt;BR /&gt;2) extra columns are always at the end ? 
&lt;BR /&gt;3) do you can get number of fixed columns or number of column to remove in advance ?</description>
      <pubDate>Mon, 08 Jun 2020 19:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207382#M7055</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-08T19:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Eliminate extra columns from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207383#M7056</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;&amp;nbsp;Thank you.&lt;/P&gt; 
&lt;P&gt;Please see my response&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;1) you are using dynamic metadata type or specific to table ?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;By defining a specific structure in the schema and in case I have few extra columns in the end while loading it to dbOutput, it works fine and ignores the additional columns.&lt;/P&gt; 
&lt;P&gt;However, I have 100 such files and can't define the schema structure, hence my plan is to use dynamic metadata. Using this option is resulting in an "invalid identified" at the target as these columns are not present&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;2) extra columns are always at the end ?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;Yes. Extra Columns are always the end&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;3) do you can get number of fixed columns or number of column to remove in advance ?&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;No. We don't get such information. The tables would be pre-defined and we need to truncate and Insert the data from source files to their relevant tables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Thanks&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 07:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Eliminate-extra-columns-from-file/m-p/2207383#M7056</guid>
      <dc:creator>Gunner49</dc:creator>
      <dc:date>2020-06-09T07:30:28Z</dc:date>
    </item>
  </channel>
</rss>

