<?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 Load a CSV file with double-double quotes as escape in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534797#M108447</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm quite experienced with Qlik, but this CSV is killing me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When loading this CSV in Excel, it will tranfsorm the text to columns without a problem&lt;/P&gt;&lt;P&gt;When loading it into an Qlik Cloud analytics app it cannot figure out how to get around these two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"Each row starts and ends with a double quote"&lt;/LI&gt;&lt;LI&gt;Each field gets a ""double-double quote"" as an escape&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The CSV will load correctly in qlik when i manually correct the file like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove start and end double quote&lt;/LI&gt;&lt;LI&gt;replace double-double quote to only 1 double quote&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now above manual corrections is not what i want to do for a daily refreshed csv.&lt;/P&gt;&lt;P&gt;Can you solve this puzzle for me?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24335"&gt;@PDBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2025 10:17:26 GMT</pubDate>
    <dc:creator>Niqander</dc:creator>
    <dc:date>2025-10-30T10:17:26Z</dc:date>
    <item>
      <title>Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534797#M108447</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I'm quite experienced with Qlik, but this CSV is killing me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When loading this CSV in Excel, it will tranfsorm the text to columns without a problem&lt;/P&gt;&lt;P&gt;When loading it into an Qlik Cloud analytics app it cannot figure out how to get around these two things:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;"Each row starts and ends with a double quote"&lt;/LI&gt;&lt;LI&gt;Each field gets a ""double-double quote"" as an escape&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The CSV will load correctly in qlik when i manually correct the file like this:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;remove start and end double quote&lt;/LI&gt;&lt;LI&gt;replace double-double quote to only 1 double quote&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now above manual corrections is not what i want to do for a daily refreshed csv.&lt;/P&gt;&lt;P&gt;Can you solve this puzzle for me?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/24335"&gt;@PDBI&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 10:17:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534797#M108447</guid>
      <dc:creator>Niqander</dc:creator>
      <dc:date>2025-10-30T10:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534798#M108448</link>
      <description>&lt;P&gt;Do I need to create an automation which will picks up this file and pulls it through a powershell script which preps this csv for Qlik and then stores the prepped csv for loading into qlik?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 10:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534798#M108448</guid>
      <dc:creator>Niqander</dc:creator>
      <dc:date>2025-10-30T10:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534801#M108449</link>
      <description>&lt;P&gt;This is the powershell which will overwrite the CSV with a qlik-prepped CSV. it basically deletes the first character for every row and it replaces "" for ".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 10:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534801#M108449</guid>
      <dc:creator>Niqander</dc:creator>
      <dc:date>2025-10-30T10:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534857#M108457</link>
      <description>&lt;P&gt;You may find that the cleanest solution is to preprocess with something like an Automation. For what it's worth, here's a pure script solution that works &lt;STRONG&gt;only if there are no double quotes in the actual data,&lt;/STRONG&gt; as it just blindly purges all double quotes.&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;TempRaw:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; PurgeChar("@1:n", '"') as Raw&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://DataFiles/Double quotes problem - only 2 rows for testing.csv]&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(fix, codepage is 28591, no labels, Header is 1 line);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Header:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; Concat('@' &amp;amp; RecNo() &amp;amp; ' as [' &amp;amp; Fname &amp;amp; ']', ',', RecNo()) as FieldList&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;SubField(Header, ',') as Fname&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;// First 1 doesn't work here in a preceding load&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "@1:n" as Header&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://&lt;SPAN&gt;DataFiles&lt;/SPAN&gt;/Double quotes problem - only 2 rows for testing.csv]&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(fix, codepage is 28591, no labels)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Where RecNo() = 1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Let vFieldList = Peek('FieldList');&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;$(vFieldList)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;From_Field (TempRaw, Raw)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(txt, codepage is 28591, explicit labels, delimiter is ',');&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Drop Tables TempRaw, Header;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The From_Field load requires a fieldlist like&lt;BR /&gt;@1 as id,&lt;/DIV&gt;&lt;DIV&gt;@2 as active, etc&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;The Header Load and vFieldList logic is just my attempt to automate the generation of the fieldlist. You could hard code it in the final load if that appears clearer.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Oct 2025 20:38:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534857#M108457</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-10-30T20:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534861#M108458</link>
      <description>&lt;P&gt;Hi Rob, Thanks for climbing into this CSV! I got your solution working and attached I have the result.&lt;/P&gt;&lt;P&gt;As you can see the file loads and colums get filled, but there is 1 field "regions" which has comma separated values inside the field. these values will populate and mess up the fields after "regions" .&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 19:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534861#M108458</guid>
      <dc:creator>Niqander</dc:creator>
      <dc:date>2025-10-30T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534866#M108459</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here's an updated script that correctly handles the comma lists.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;TempRaw:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Load&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Replace(Mid(Raw, 2, len(Raw)-2), '""', '"') as Raw &lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "@1:n" as Raw&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://&lt;SPAN&gt;DataFiles&lt;/SPAN&gt;/Double quotes problem - only 2 rows for testing.csv]&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(fix, codepage is 28591, no labels, Header is 1 line);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Header:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Concat('@' &amp;amp; RecNo() &amp;amp; ' as [' &amp;amp; Fname &amp;amp; ']', ',', RecNo()) as FieldList&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;SubField(Header, ',') as Fname&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;// First 1 doesn't work here in a preceding load&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp; "@1:n" as Header&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;FROM [lib://&lt;SPAN&gt;DataFiles&lt;/SPAN&gt;/Double quotes problem - only 2 rows for testing.csv]&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(fix, codepage is 28591, no labels)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Where RecNo() = 1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Let vFieldList = Peek('FieldList');&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;LOAD&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &amp;nbsp;$(vFieldList)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;From_Field (TempRaw, Raw)&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;(txt, codepage is 28591, explicit labels, delimiter is ',', msq);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;Drop Tables TempRaw, Header;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Rob&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Oct 2025 20:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534866#M108459</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-10-30T20:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534934#M108469</link>
      <description>&lt;P&gt;Hi Rob, many thanks for changing the code for me to only purge the first and last " with the mid function, I could/should have done that myself, sorry for taking your time on this one. I ran the code for the full dataset and all data looks to be loading into the correct fields now.&lt;/P&gt;&lt;P&gt;I have filed an "&lt;SPAN&gt;Qlik Sense | Data Prep &amp;amp; Modeling&lt;/SPAN&gt;" Ideation for this CSV file to be handled by the engine automatically without the need of the above script, just like MS Excel (see attached) does with the text-to-columns function without any further need to alter text beforehand.&lt;/P&gt;&lt;P&gt;&lt;A href="https://ideation.qlik.com/app/#/case/515953?currentProductId=9da99bc1-0dfb-4471-8e12-d23685578c43&amp;amp;cpid=44fa662e-641c-4e37-8afb-22757ec29196" target="_blank"&gt;https://ideation.qlik.com/app/#/case/515953?currentProductId=9da99bc1-0dfb-4471-8e12-d23685578c43&amp;amp;cpid=44fa662e-641c-4e37-8afb-22757ec29196&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 10:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534934#M108469</guid>
      <dc:creator>Niqander</dc:creator>
      <dc:date>2025-10-31T10:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Load a CSV file with double-double quotes as escape</title>
      <link>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534949#M108475</link>
      <description>&lt;P&gt;Glad it works. I agree it would be good if the loader handled it as-is.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Fri, 31 Oct 2025 14:16:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-a-CSV-file-with-double-double-quotes-as-escape/m-p/2534949#M108475</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2025-10-31T14:16:24Z</dc:date>
    </item>
  </channel>
</rss>

