<?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 Loading a huge CSV file : problems with Memory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212548#M66499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without set erromode=0 the script would actually stop at the first error.&lt;/P&gt;&lt;P&gt;-alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 12:51:43 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-03T12:51:43Z</dc:date>
    <item>
      <title>Loading a huge CSV file : problems with Memory</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212547#M66498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;We have a huge CSV file that needs to be loaded and further saved as a QVD.&lt;/P&gt;&lt;P&gt;Cause within our installation, data tables are alwayes dumped into CSV files and then transfromed into QVDs.&lt;/P&gt;&lt;P&gt;The real applications (QVWs) read those QVDs (and not the original database or CSV file). This is way faster to develop.&lt;/P&gt;&lt;P&gt;So far , so good.&lt;/P&gt;&lt;P&gt;Now it happens that we have a huge CSV file that cannot be loaded by QV.... What we have observed :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The file does not have weird characters. It is a typical CSV files with letters, numbers and some punctuation chars. Nothing special .&lt;/LI&gt;&lt;LI&gt;Many, many records. Huge files. Many fields as well. File is well aligned, that is, all lines (records) have same number of fields.&lt;/LI&gt;&lt;LI&gt;When we reduce the number of fields being loaded, by quoting part of the load script statement, the processing goes on.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So, it looks pretty much with a LIMITATION of QLIK VIEW to load huge files.&lt;/P&gt;&lt;P&gt;Do you think you could dump the attached (linked) kit and run at your side ?&lt;/P&gt;&lt;P&gt;On the kit you have :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The huge CSV file, of course.&lt;/LI&gt;&lt;LI&gt;The QVW that will load it, called ARQUIVO.QVW. The interface is empty. Just need to load (test the load process).&lt;/LI&gt;&lt;LI&gt;The script , called ARQUIVO.QVS that is included via macro on the QVW.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope you can at least simulate the problem there at your side. If it is a technical problem I need to open a support request to QlikTech.&lt;/P&gt;&lt;P&gt;But before doing that I wanna test with other fellows.&lt;/P&gt;&lt;P&gt;Thanks in advance 4 your suPPort !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 11:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212547#M66498</guid>
      <dc:creator />
      <dc:date>2010-12-03T11:52:50Z</dc:date>
    </item>
    <item>
      <title>Loading a huge CSV file : problems with Memory</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212548#M66499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without set erromode=0 the script would actually stop at the first error.&lt;/P&gt;&lt;P&gt;-alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 12:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212548#M66499</guid>
      <dc:creator />
      <dc:date>2010-12-03T12:51:43Z</dc:date>
    </item>
    <item>
      <title>Loading a huge CSV file : problems with Memory</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212549#M66500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been running it for quite a few minutes and it loads very slowly because of all the transformation (IF...).&lt;/P&gt;&lt;P&gt;Try loading it straight into memory and then do the transforms from the resident file e.g.&lt;/P&gt;&lt;P&gt;tFCRES:&lt;/P&gt;&lt;P&gt;LOAD * FROM FCRES.CSV;&lt;/P&gt;&lt;P&gt;FCRES:&lt;/P&gt;&lt;P&gt;LOAD..IF(...)&lt;/P&gt;&lt;P&gt;RESIDENT tFCRES;&lt;/P&gt;&lt;P&gt;DROP TABLE tFCRES;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 12:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212549#M66500</guid>
      <dc:creator />
      <dc:date>2010-12-03T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Loading a huge CSV file : problems with Memory</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212550#M66501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a 32 bit laptop with QV10. Original script gives out of memory, so I did:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;removed the set ERRORMODE=0, as it skips over errors I want to see&lt;/LI&gt;&lt;LI&gt;split the csv file into 100,000 lines . Put back the header row to each fragment&lt;/LI&gt;&lt;LI&gt;commented out the store statements into R:\ drive, and the load ERRORFILE as they are missing&lt;/LI&gt;&lt;LI&gt;loaded separately the 6 fragments&lt;/LI&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;All files load just fine. It means you need to move to a machine with bigger memory, and possibly 64 bits.&lt;/P&gt;&lt;P&gt;When you removed columns, it equally reduced the memory consumption.&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;And rewrite those copy pasted code chunks, those are a mess ..&lt;/P&gt;&lt;P&gt;-Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212550#M66501</guid>
      <dc:creator />
      <dc:date>2010-12-03T13:30:00Z</dc:date>
    </item>
    <item>
      <title>Loading a huge CSV file : problems with Memory</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212551#M66502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script is not meant to be "human readable" ..&lt;/P&gt;&lt;P&gt;The script is generated automatically by a Cobol Program. Thus, the Cobol program running on a Mainframe DUMPs a table onto the CSV and then creates the script that will transform the CSV into a QVD.&lt;/P&gt;&lt;P&gt;The IF statements are there to detect invalid content on the fields.&lt;/P&gt;&lt;P&gt;But let's listen to other opinions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 13:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-huge-CSV-file-problems-with-Memory/m-p/212551#M66502</guid>
      <dc:creator />
      <dc:date>2010-12-03T13:52:00Z</dc:date>
    </item>
  </channel>
</rss>

