<?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 Problem with added columns in CSV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-added-columns-in-CSV/m-p/159187#M33942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;P&gt;You may be able to solve your problem using column numbers rather than headings in your script.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; @1 AS Id,&lt;BR /&gt; @2 AS Name,&lt;BR /&gt; @3 AS Date&lt;BR /&gt;FROM DataFile.csv;&lt;/P&gt;&lt;P&gt;This should get nulls for columns that do not exist. This does assume that the columns were added to the end of the csv. If they were added in the middle, then you will need a more complex approach.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jan 2011 11:01:22 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2011-01-07T11:01:22Z</dc:date>
    <item>
      <title>Problem with added columns in CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-added-columns-in-CSV/m-p/159186#M33941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our developers have added more columns to our CSV files. This cause the script to crash due to the fact that the new columns are missing in older csv files.&lt;/P&gt;&lt;P&gt;Is there a way to check if the column exist or can I ignore columns before a certain date somehow?&lt;/P&gt;&lt;P&gt;I need the data in the new columns, but I want to load the old data as well.&lt;/P&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 10:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-added-columns-in-CSV/m-p/159186#M33941</guid>
      <dc:creator />
      <dc:date>2011-01-07T10:53:44Z</dc:date>
    </item>
    <item>
      <title>Problem with added columns in CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-added-columns-in-CSV/m-p/159187#M33942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niklas&lt;/P&gt;&lt;P&gt;You may be able to solve your problem using column numbers rather than headings in your script.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt; @1 AS Id,&lt;BR /&gt; @2 AS Name,&lt;BR /&gt; @3 AS Date&lt;BR /&gt;FROM DataFile.csv;&lt;/P&gt;&lt;P&gt;This should get nulls for columns that do not exist. This does assume that the columns were added to the end of the csv. If they were added in the middle, then you will need a more complex approach.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 11:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-added-columns-in-CSV/m-p/159187#M33942</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2011-01-07T11:01:22Z</dc:date>
    </item>
  </channel>
</rss>

