<?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 [resolved] Validating headers from file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223483#M16601</link>
    <description>We have a job set up to import data from csv file in database. But since the client data file is not always consistent, I want to have column sequence validation.
&lt;BR /&gt;For example,&amp;nbsp;
&lt;BR /&gt;
&lt;B&gt;Actual file :&lt;/B&gt;
&lt;BR /&gt;Address,Name, Email, Phone1, Phone2
&lt;BR /&gt;
&lt;B&gt;Inconsistent file :&lt;/B&gt;
&lt;BR /&gt;Name,Email,Address,Phone1,Phone2
&lt;BR /&gt;I am looking to import the file only if the sequence is correct else reject that file.
&lt;BR /&gt;Is there a component in Talend which allows to validate column names ?&amp;nbsp;
&lt;BR /&gt;I know people have suggested to read first line (headers) and compare it using tjava. Is there any other way to validate the sequence of columns from file without hard-coding it in tjava ?</description>
    <pubDate>Sat, 16 Nov 2024 11:14:35 GMT</pubDate>
    <dc:creator>npatel</dc:creator>
    <dc:date>2024-11-16T11:14:35Z</dc:date>
    <item>
      <title>[resolved] Validating headers from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223483#M16601</link>
      <description>We have a job set up to import data from csv file in database. But since the client data file is not always consistent, I want to have column sequence validation.
&lt;BR /&gt;For example,&amp;nbsp;
&lt;BR /&gt;
&lt;B&gt;Actual file :&lt;/B&gt;
&lt;BR /&gt;Address,Name, Email, Phone1, Phone2
&lt;BR /&gt;
&lt;B&gt;Inconsistent file :&lt;/B&gt;
&lt;BR /&gt;Name,Email,Address,Phone1,Phone2
&lt;BR /&gt;I am looking to import the file only if the sequence is correct else reject that file.
&lt;BR /&gt;Is there a component in Talend which allows to validate column names ?&amp;nbsp;
&lt;BR /&gt;I know people have suggested to read first line (headers) and compare it using tjava. Is there any other way to validate the sequence of columns from file without hard-coding it in tjava ?</description>
      <pubDate>Sat, 16 Nov 2024 11:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223483#M16601</guid>
      <dc:creator>npatel</dc:creator>
      <dc:date>2024-11-16T11:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Validating headers from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223484#M16602</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;No component can do this, you still need to read the first line and write a simple Java code to validate it, I think writing a Java code to validate is more simpler than writing a component to do it. 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 22 Apr 2015 11:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223484#M16602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Validating headers from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223485#M16603</link>
      <description>I think you are looking for something &lt;A href="http://dwetl.com/2015/02/16/validate-csv-headers-in-talend/" target="_blank" rel="nofollow noopener noreferrer"&gt;Validate CSV Headers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;check this link for how to achieve it.&amp;nbsp;</description>
      <pubDate>Wed, 22 Apr 2015 11:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223485#M16603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-22T11:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Validating headers from file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223486#M16604</link>
      <description>Thanks Shong and Umesh.&amp;nbsp;</description>
      <pubDate>Thu, 23 Apr 2015 19:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Validating-headers-from-file/m-p/2223486#M16604</guid>
      <dc:creator>npatel</dc:creator>
      <dc:date>2015-04-23T19:31:52Z</dc:date>
    </item>
  </channel>
</rss>

