<?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: Proposed enhancement, specify text enclosure for loading text files in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235388#M86644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with a comma separated file that includes double quoted field values that include commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value1, value2, "value list, 1,2,3", value4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is a data set of four values with the third value containing commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the text-enclosure option is an excellent idea.&lt;/P&gt;&lt;P&gt;How do we get this in the QV queue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Feb 2013 22:46:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-03T22:46:34Z</dc:date>
    <item>
      <title>Proposed enhancement, specify text enclosure for loading text files</title>
      <link>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235385#M86641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used QlikView a few times now with great pleasure but there is one thing that puzzled me but now I finally found the problem.&lt;/P&gt;&lt;P&gt;When importing a text file into QlikView that uses text-enclosure it is not possible to specify the enclosure itself. This is a problem when you import a text-file that uses the double quote as an enclosure but one or more of the fields contain a single quote at the beginning.&lt;/P&gt;&lt;P&gt;Perhaps this is a problem that only the Dutch face because some of our street- and city names start with a '....&lt;/P&gt;&lt;P&gt;You can reproduce the problem by creating a csv-file that uses "" as the enclosure:&lt;/P&gt;&lt;P&gt;---- 8x --------------------------------------------------------------------------------------&lt;BR /&gt;0Correct?;1Field1;2Field2;3Field3;4Field4&lt;BR /&gt;Yes;abcd;efgh;klmn;"op""qr"&lt;BR /&gt;Yes;abcd;'efgh;klmn;opqr&lt;BR /&gt;No, field 1 and 2 are concatenated;'abcd;efgh;'klmn;opqr&lt;BR /&gt;-----------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;When you import it into QlikView it will not go as planned&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-4201_sourceID:4201" /&gt;:&lt;/P&gt;&lt;P&gt;The script that was used:&lt;/P&gt;&lt;P&gt;LOAD * FROM &amp;lt;file.csv&amp;gt;&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', msq );&lt;/P&gt;&lt;P&gt;It does not matter if you use MSQ or standard.&lt;/P&gt;&lt;P&gt;I would really like it if an option was added allowing you to specify the enclosure. For example:&lt;BR /&gt;LOAD * FROM &amp;lt;file.csv&amp;gt;&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ';', enclosure is '"', msq);&lt;/P&gt;&lt;P&gt;Have any of you had similar problems and how have you solved them and would you also like to have this feature added?&lt;/P&gt;&lt;P&gt;I replaced the ' in the textfile [:S]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 14:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235385#M86641</guid>
      <dc:creator />
      <dc:date>2011-04-29T14:49:26Z</dc:date>
    </item>
    <item>
      <title>Proposed enhancement, specify text enclosure for loading text files</title>
      <link>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235386#M86642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Use the "No quotes" instead of MSQ or standard:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD @1, @2, @3, @4, @5FROM file.csv (txt, codepage is 1252, no labels, delimiter is ';', &lt;STRONG&gt;no quotes&lt;/STRONG&gt;);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As a temporary workaround, you can replace the character when loading, then replace it again. Or use instead a two step SubField() (or a one step should the number of fields is fixed):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD SubField(@1:n, ';', 1) AS Field1, SubField(@1:n, ';', 2) AS Field2, SubField(@1:n, ';', 3) AS Field3FROM file.csv (fix, codepage is 1252);&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:04:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235386#M86642</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-04-29T15:04:28Z</dc:date>
    </item>
    <item>
      <title>Proposed enhancement, specify text enclosure for loading text files</title>
      <link>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235387#M86643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;Thank you for the suggestions. The first won't work because the file contains the delimiter ";" in the fields as well. By not using standard or new style quotes this will not work I think.&lt;/P&gt;&lt;P&gt;The second suggestion might work, but I think I would run into the same problem with fields containing the delimiter.&lt;/P&gt;&lt;P&gt;A better example of my problem would have been the following "file":&lt;/P&gt;&lt;P&gt;0Correct?;1Field1;2Field2;3Field3;4Field4&lt;BR /&gt;Yes;abcd;efgh;klmn;"op;qr"&lt;BR /&gt;Yes;abcd;'efgh;klmn;opqr&lt;BR /&gt;No, field 1 and 2 are concatenated;'abcd;efgh;'klmn;opqr&lt;/P&gt;&lt;P&gt;This example goed wrong when importing with no quotes&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7624.Example-import-not-going-as-planned.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/7624.Example-import-not-going-as-planned.jpg" /&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have also tried the second solution on it and it gave the same problem which I would expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2011 15:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235387#M86643</guid>
      <dc:creator />
      <dc:date>2011-04-29T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proposed enhancement, specify text enclosure for loading text files</title>
      <link>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235388#M86644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am faced with a comma separated file that includes double quoted field values that include commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value1, value2, "value list, 1,2,3", value4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is a data set of four values with the third value containing commas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the text-enclosure option is an excellent idea.&lt;/P&gt;&lt;P&gt;How do we get this in the QV queue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Feb 2013 22:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Proposed-enhancement-specify-text-enclosure-for-loading-text/m-p/235388#M86644</guid>
      <dc:creator />
      <dc:date>2013-02-03T22:46:34Z</dc:date>
    </item>
  </channel>
</rss>

