<?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: Loading variable containing a single quote as field in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206231#M387657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing that comes to my mind is, what name does it pick when you do a LOAD *;&lt;/P&gt;&lt;P&gt;May be once you have it loaded, check how QlikView is reading it in the table viewer or within the list of fields you have in your application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2016 21:54:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-10-06T21:54:18Z</dc:date>
    <item>
      <title>Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206227#M387653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community users,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a lot of useful information concerning quotation and escape sequences, but nothing about my quotation problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a variable containing a text starting with a single quote (chr(39)).&lt;/P&gt;&lt;P&gt;I'm trying to use this variable (within $()) as literal in a Load statement, but as literals should come in single quotes it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/105-49954-139612/pastedImage_2.png"&gt;&lt;IMG class="jive-image image-2" height="63" src="https://community.qlik.com/legacyfs/online/139894_pastedImage_2.png" width="543" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt; My variable vFile contains a single quote:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/105-49954-139613/pastedImage_4.png"&gt;&lt;IMG class="jive-image image-3" height="24" src="https://community.qlik.com/legacyfs/online/139928_pastedImage_4.png" width="324" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The QV parser inserts an Escape sequence trying to solve the problem.&lt;/P&gt;&lt;P&gt;The error comes with following debug information, the literal is starting with a triple single quote:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/servlet/JiveServlet/showImage/105-49954-139614/pastedImage_5.png"&gt;&lt;IMG class="image-4 jive-image" height="31" src="https://community.qlik.com/legacyfs/online/139929_pastedImage_5.png" width="638" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;According to previous information, I would assume that the second and third quote would resolve as Escape sequence, but that doesn't work. My guess is doesn't work because it's at the beginning of the literal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My simple solution is to replace the single quote Chr(39) by quotation mark Chr(96), that works.&lt;/P&gt;&lt;P&gt;However my style is 'perfect and simple' solutions: so I'm still looking for a better way to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone a better solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206227#M387653</guid>
      <dc:creator>m_r_de_wit</dc:creator>
      <dc:date>2016-10-06T21:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206228#M387654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a WildCard?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*s-Gravenhage Factpack 160602.pdf&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206228#M387654</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T21:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206229#M387655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help. I don't consider this an improvement compared with my replacement with a quotation mark (')&lt;/P&gt;&lt;P&gt;I would like te get the original text string, including the single quote at the first position, into the table field.&lt;/P&gt;&lt;P&gt;Hoping to find someone to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards Michel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206229#M387655</guid>
      <dc:creator>m_r_de_wit</dc:creator>
      <dc:date>2016-10-06T21:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206230#M387656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, I thought it was the while you are loading from. But this seems like a field in your file, right? Can you try one of these and see if those help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;['&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;s-Gravenhage Factpack 160602.pdf] as Bestand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"'&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;s-Gravenhage Factpack 160602.pdf" as Bestand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like you have already tried the second one, but if you have not, then give them a shot. If it doesn't work, would you be able to share a sample to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206230#M387656</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T21:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206231#M387657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing that comes to my mind is, what name does it pick when you do a LOAD *;&lt;/P&gt;&lt;P&gt;May be once you have it loaded, check how QlikView is reading it in the table viewer or within the list of fields you have in your application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 21:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206231#M387657</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-06T21:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading variable containing a single quote as field in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206232#M387658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not very nice but if you used an additionally step and putting your variable within a field you could avoid the quotes-trouble. Here a very simplified example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set z = "'xxxxx";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;q: &lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;x&lt;/P&gt;&lt;P&gt;$(z)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set y = peek('x', 0, 'q');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load $(y) as a AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2016 11:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-variable-containing-a-single-quote-as-field-in-a-table/m-p/1206232#M387658</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-07T11:57:12Z</dc:date>
    </item>
  </channel>
</rss>

