<?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 CSV does not load the record correctly when I have single quotes in separate fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1629148#M46850</link>
    <description>&lt;P&gt;Not all fields are correctly loaded when I have single quotes in 2 separate column fields in the source CSV file&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Name;Type;Price;Description;Quantity&lt;BR /&gt;'t Apple; Fruit; 2,00;I have to do's;10,00&lt;/P&gt;&lt;P&gt;The result will be that everything between the single quotes is loaded in the Name field, so ignoring the delimiter.&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp;Price&amp;nbsp; &amp;nbsp;Description Quantity&lt;BR /&gt;'t Apple; Fruit; 2,00;I have to do's&amp;nbsp; &amp;nbsp; &amp;nbsp; 10,00 Null&amp;nbsp; &amp;nbsp; &amp;nbsp;Null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null&lt;/P&gt;&lt;P&gt;Note: Doing the same in SQL Server works perfectly&lt;/P&gt;&lt;P&gt;How can I resolve this without changing the source file?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:32:29 GMT</pubDate>
    <dc:creator>ChristopheG</dc:creator>
    <dc:date>2024-11-16T04:32:29Z</dc:date>
    <item>
      <title>CSV does not load the record correctly when I have single quotes in separate fields</title>
      <link>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1629148#M46850</link>
      <description>&lt;P&gt;Not all fields are correctly loaded when I have single quotes in 2 separate column fields in the source CSV file&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Name;Type;Price;Description;Quantity&lt;BR /&gt;'t Apple; Fruit; 2,00;I have to do's;10,00&lt;/P&gt;&lt;P&gt;The result will be that everything between the single quotes is loaded in the Name field, so ignoring the delimiter.&lt;/P&gt;&lt;P&gt;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Type&amp;nbsp; &amp;nbsp;Price&amp;nbsp; &amp;nbsp;Description Quantity&lt;BR /&gt;'t Apple; Fruit; 2,00;I have to do's&amp;nbsp; &amp;nbsp; &amp;nbsp; 10,00 Null&amp;nbsp; &amp;nbsp; &amp;nbsp;Null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Null&lt;/P&gt;&lt;P&gt;Note: Doing the same in SQL Server works perfectly&lt;/P&gt;&lt;P&gt;How can I resolve this without changing the source file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1629148#M46850</guid>
      <dc:creator>ChristopheG</dc:creator>
      <dc:date>2024-11-16T04:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: CSV does not load the record correctly when I have single quotes in separate fields</title>
      <link>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1629353#M46858</link>
      <description>One way to do this is to load this in as one field, then split it out using ; as delimiter in the data manager</description>
      <pubDate>Mon, 30 Sep 2019 00:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1629353#M46858</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-09-30T00:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV does not load the record correctly when I have single quotes in separate fields</title>
      <link>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1630134#M46926</link>
      <description>&lt;P&gt;Thanks Lisa,&lt;/P&gt;&lt;P&gt;I was able to clean the source file without the single quotes in our source system before it got exported.&lt;/P&gt;&lt;P&gt;I have also tried your idea and that should work as well I believe, but to avoid any errors we managed to clean the source.&lt;/P&gt;&lt;P&gt;I was doing the below script to load everything in a single line, but again I have stopped because we were able to clean the source:&lt;/P&gt;&lt;P&gt;CSV:&lt;BR /&gt;LOAD&lt;BR /&gt;Chr(39) &amp;amp; LEFT([@1:n],Index([@1:n],';',1)) &amp;amp; chr(39)&lt;BR /&gt;&amp;amp; Chr(39) &amp;amp; Mid([@1:n],Index([@1:n],';',1)+1,Index([@1:n],';',2)- Index([@1:n],';',1)) &amp;amp; Chr(39)&lt;BR /&gt;&amp;amp; Chr(39) &amp;amp; Mid([@1:n],Index([@1:n],';',2)+1,Index([@1:n],';',3)- Index([@1:n],';',2)) &amp;amp; Chr(39)&lt;BR /&gt;&amp;amp; Chr(39) &amp;amp; Mid([@1:n],Index([@1:n],';',3)+1,Index([@1:n],';',4)- Index([@1:n],';',3)) &amp;amp; Chr(39)&lt;BR /&gt;&amp;nbsp;As Line&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;FROM [lib://temp.csv]&lt;BR /&gt;(txt,fix, utf8);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 15:01:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/CSV-does-not-load-the-record-correctly-when-I-have-single-quotes/m-p/1630134#M46926</guid>
      <dc:creator>ChristopheG</dc:creator>
      <dc:date>2019-10-01T15:01:51Z</dc:date>
    </item>
  </channel>
</rss>

