<?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: Load Multiple CSV files with different Structure in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285952#M59574</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have assigned the value as constant and that is the reason for error. You will have to try like below in tjavarow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think the suggestion has worked, please mark the topic as acceptable solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 09:14:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-20T09:14:50Z</dc:date>
    <item>
      <title>Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285946#M59568</link>
      <description>Hi all, 
&lt;BR /&gt;We have a project requirement where we are required to load 100+ CSV files into the oracle database. All 100 CSV files have different structure. Before loading the files into the database we need to perform basic validations like,&amp;nbsp; 
&lt;BR /&gt;- for Date column check if date is in correct format 
&lt;BR /&gt;- trim the white spaces for strings 
&lt;BR /&gt;- check if numeric data types columns actually consists of numbers 
&lt;BR /&gt;Now I have 2 queries: 
&lt;BR /&gt;- I am thinking of storing the name and schema of the CSV files in database. Read that meta data information of the file and then depending upon the meta data, load the data into the oracle tables. This way tomorrow is 100+ new CSV files are added for loading, I do not have to create a new job everytime. 
&lt;BR /&gt;Please suggest how it can be achieved.&amp;nbsp;</description>
      <pubDate>Sat, 16 Nov 2024 10:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285946#M59568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285947#M59569</link>
      <description>Hi,
&lt;BR /&gt;Have you already checke talend dynamic schema feature which&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;allows you to design schema with an unknown column structure (unknown name and number of columns).&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;Here is the article about:&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513179" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:How to process changing data structure?&lt;/A&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="2"&gt;&lt;FONT face="Calibri, sans-serif"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT face="Calibri, sans-serif"&gt;&lt;FONT size="2"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Thu, 22 Sep 2016 07:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285947#M59569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T07:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285948#M59570</link>
      <description>I am aware of it but this does not allow me to perform any data quality checks on the Data. This will be a simple load from file to the database or vice versa.&lt;BR /&gt;Thanks,&lt;BR /&gt;Sankalp</description>
      <pubDate>Thu, 22 Sep 2016 10:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285948#M59570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-22T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285949#M59571</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;How can I import data from excel or csv file and dump data in two tables&amp;nbsp; State Name, State Code, City Name, City Code in State_City table and Sr No, Name, Address, Department, Designation, Date of Joining in Emp table? Here is the attached file.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lt5d"&gt;ExcelFile.xlsx&lt;/A&gt;</description>
      <pubDate>Thu, 19 Jul 2018 16:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285949#M59571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T16:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285950#M59572</link>
      <description>&lt;P&gt;Hi Dhara,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You will require&amp;nbsp;two logical operations in this context.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; After reading the file (while reading, specify limit value as 5 so that you will read only header part), you need to push the data to a tjavarow or tmap. Since State Name is in column A and value is in column B, you can do a comparison operation. ie, if input_row.columnA is equal to "State Name:" then output_row.statname=input_row.columnB. Similar operation can help you to parse other header details.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;For reading the detailed content,&amp;nbsp;read the data using texcelinput component again but this time specify the header as 5. In this way, you will be skipping the header components.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Hope this can resolve your issue. If it is working, please mark as accepted solution so that it will help Talend community.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm regards,&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 18:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285950#M59572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-19T18:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285951#M59573</link>
      <description>&lt;P&gt;How can I write if else condition in tJavaRow component?&lt;/P&gt; 
&lt;P&gt;if (input_row.A=='State Name:')&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;System.out.println(output_row.statename);&lt;BR /&gt;}&lt;BR /&gt;else if (input_row.A=='City Name:')&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;System.out.println(output_row.cityname);&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;I wrote this code but getting error 'Invalid Character constant'.&lt;/P&gt; 
&lt;P&gt;See the screenshot&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 777px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzKH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136175i2B344617DB26BB54/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzKH.png" alt="0683p000009LzKH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 09:01:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285951#M59573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T09:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285952#M59574</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have assigned the value as constant and that is the reason for error. You will have to try like below in tjavarow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think the suggestion has worked, please mark the topic as acceptable solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 09:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285952#M59574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285953#M59575</link>
      <description>&lt;P&gt;I am getting duplicate rows when I dump data into Oracle table and I am not getting state code value and city code value.&lt;/P&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("State Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statecode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("City Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.citycode = input_row.D;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 10:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285953#M59575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-20T10:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285954#M59576</link>
      <description>&lt;P&gt;I am getting duplicate rows when I dump data into Oracle table and I am not getting state code value and city code value.&lt;/P&gt; 
&lt;P&gt;This is my code.&lt;/P&gt; 
&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("State Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statecode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("City Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.citycode = input_row.D;&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;Can you help me to resolve this?&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;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="E1.PNG" style="width: 543px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzLF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131032i093AC878711463DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzLF.png" alt="0683p000009LzLF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Output:&lt;/P&gt; 
&lt;P&gt;StateName&amp;nbsp; CityName StateCode CityCode&lt;/P&gt; 
&lt;P&gt;Gujarat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Gujarat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; abc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;234&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Gujarat&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;abc&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 123&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;234&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 07:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285954#M59576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-21T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285955#M59577</link>
      <description>&lt;P&gt;Hi Dhara3010,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You will have to denormalize the dataset to get a single row of data. I have used the same excel sheet provided by you in your previous chat and I got the result set in single line. I have attached the sample job for your reference as zip file. Please make necessary changes according to your need.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzHs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153999iCC09B9D816EDED0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzHs.png" alt="0683p000009LzHs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And the result I got is as shown below (you may have to reformat the date column according to your choice).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzLP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133479i74D1426D17EEAF03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzLP.png" alt="0683p000009LzLP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The code used in tjavarow is as shown below.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;//Code generated according to input schema and output schema&lt;BR /&gt;output_row.merge_data="Yes";&lt;BR /&gt;output_row.statename = "";&lt;BR /&gt;output_row.cityname = "";&lt;BR /&gt;output_row.statecode = "";&lt;BR /&gt;output_row.citycode = "";&lt;BR /&gt;output_row.fromdate = "";&lt;BR /&gt;output_row.todate = "";&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("From Date:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.fromdate = input_row.B;&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("State Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statecode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("City Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.citycode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("To Date:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.todate = input_row.D;&lt;BR /&gt;}&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&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/0683p000009LtIU"&gt;test2.zip&lt;/A&gt;</description>
      <pubDate>Sat, 21 Jul 2018 20:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285955#M59577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-21T20:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285956#M59578</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot for this solution. It really solved my problem. It is the best solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dhara&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 07:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285956#M59578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T07:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285957#M59579</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Happy to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 08:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285957#M59579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T08:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285958#M59580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; What if State Name is State Name1(Column name mismatch) in file or there is no data in file or value is not found or format is mismatch or full file is blank or record not found or improper file. How can I handle such file and data? i.e. Error handling&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Dhara&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 13:07:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285958#M59580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T13:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285959#M59581</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You will have to invoke the subsequent error flows based on the different business rules you are planning to create.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example, you can check the number of records from incoming excel data file by checking the value of pseudo variable&amp;nbsp;((Integer)globalMap.get("tFileInputExcel_1_NB_LINE")). If the value of this variable is zero, then you&amp;nbsp;can go for the error flow. Similarly you will have to define each error flow in your mind and catch the errors using Talend error handling components.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 13:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285959#M59581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-23T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285960#M59582</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;My file template is given below&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 546px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzhM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129781i9EB5EC943996A923/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzhM.png" alt="0683p000009LzhM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Now, If I get some other file format like this below&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 635px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz37.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144777i546D0C10589E27C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz37.png" alt="0683p000009Lz37.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;then what condition should I check and which palette should I use to move this file in Error Folder.&lt;/P&gt; 
&lt;P&gt;And if my file is half run i.e from 5 rows, only 2 are inserted then rows should be rollback and file should be moved to Error Folder. I am dumping data from excel file to sql server.&lt;/P&gt; 
&lt;P&gt;Can anyone suggest me the solution as soon as possible?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Dhara&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285960#M59582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-29T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285961#M59583</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What condition should I mention to move file to error folder if I don't get following all columns mentioned in the condition,&lt;/P&gt;
&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("From Date:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.fromdate = input_row.B;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("State Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statecode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("City Code:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.citycode = input_row.D;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.C) &amp;amp;&amp;amp; input_row.C.equals("To Date:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.todate = input_row.D;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 06:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285961#M59583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-30T06:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285962#M59584</link>
      <description>&lt;P&gt;Can anyone help me for this? I need the solution by today as I need to complete the requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 13:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285962#M59584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-30T13:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285963#M59585</link>
      <description>&lt;P&gt;Hi Dhara,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You can add a flag column to verify whether the file is good or bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;context.file_flag="Y" (at starting point for each file read in a tjava)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("State Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.statename = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("City Name:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.cityname = input_row.B;&lt;BR /&gt;}&lt;BR /&gt;else if (!Relational.ISNULL(input_row.A) &amp;amp;&amp;amp; input_row.A.equals("From Date:"))&lt;BR /&gt;{&lt;BR /&gt;output_row.fromdate = input_row.B;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if ( Relational.ISNULL(output_row.statename ) &amp;amp;&amp;amp; Relational.ISNULL(output_row.statename ) ...... add other columns according to your need ) &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;context.file_flag="N";&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a run if condition and verify whether the file_flag value is Y or N. Based on that value, you can either mark it as good file or bad file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nikhil Thampi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 19:33:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285963#M59585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-30T19:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285964#M59586</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi&lt;/SPAN&gt; for the solution&lt;/P&gt;</description>
      <pubDate>Sat, 01 Sep 2018 06:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285964#M59586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-01T06:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Load Multiple CSV files with different Structure</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285965#M59587</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Nikhil&lt;/SPAN&gt;,&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 510px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzls.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132849i349F5636AECFA18A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzls.png" alt="0683p000009Lzls.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I am not able to dump this data&amp;nbsp; in my table. I am getting error as shown below&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5.PNG" style="width: 828px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzlx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147641i5071C015D4FD37F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzlx.png" alt="0683p000009Lzlx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 15:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Load-Multiple-CSV-files-with-different-Structure/m-p/2285965#M59587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-02T15:03:41Z</dc:date>
    </item>
  </channel>
</rss>

