<?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: Ignoring apostrophes in folder name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311618#M407668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea behind my suggestion is same as &lt;A href="https://community.qlik.com/people/stigchel"&gt;stigchel&lt;/A&gt;‌‌'s, I guess I am just proposing the way to execute his and mine suggestion in your application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 May 2017 15:09:51 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-05-09T15:09:51Z</dc:date>
    <item>
      <title>Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311614#M407664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am familiar with keepchar, purgechar, and a few other methods utilized to deal with special characters with normal fields; however, my documentpath and file name have an apostrophe in them and are loaded using variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;//Client name in this case is &lt;STRONG&gt;Bob's Apples &lt;/STRONG&gt;and the code knows to automatically look in a preceding folder to find the client name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;/*Code to define your client name based on folder structure--works fine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vClientName = SubField(DocumentPath(),'\',substringcount(DocumentPath(),'\'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #339966;"&gt;// 2 files loaded from 2 different folders depending on which step of the process were in (1 or 2)...these also load fine for Bob's Apples&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vStepOneFile = chr(39) &amp;amp; 'T:\clients\$(vClientName)\1-Actuals\Actuals Final.xlsx' &amp;amp; chr(39);&lt;/P&gt;&lt;P&gt;Let vStepTwoFile = chr(39) &amp;amp; 'T:\clients\$(vClientName)\2-Benchmark Rates\Benchmark Rates Final.xlsx' &amp;amp; chr(39);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;//These fail when my client name has an apostrophe, such as the case with &lt;STRONG&gt;Bob&lt;SPAN style="font-size: 18pt;"&gt;'&lt;/SPAN&gt;s Apples.&amp;nbsp; &lt;/STRONG&gt;It accounts for the apostrophe when i set the client name variable, as well as when i load the files from a folder name WITH an apostrophe, but thats it.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Let vStepOneFileExists=if(FileSize($(vStepOneFile))&amp;gt;0,-1,0);&lt;/P&gt;&lt;P&gt;Let vStepTwoFileExists=if(FileSize($(vStepTwoFile))&amp;gt;0,-1,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The error i get reads:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error&lt;/P&gt;&lt;P&gt;Unexpected token: 's', expected nothing&lt;/P&gt;&lt;P&gt;Let vStepOneFileExists=if(FileSize('T:\clients\Bob'&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;s&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; Apples\Actuals\Actuals Final.xlsx')&amp;gt;0,-1,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 14:51:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311614#M407664</guid>
      <dc:creator>jjohnstonti618</dc:creator>
      <dc:date>2017-05-09T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311615#M407665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probably use an escape character e.g. 'Bob''s Aples', see also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/06/08/escape-sequences"&gt;&lt;SPAN style="color: black;"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/06/08/escape-sequences&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311615#M407665</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2017-05-09T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311616#M407666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vClientName = &lt;SPAN style="color: #ff0000;"&gt;Replace(&lt;/SPAN&gt;SubField(DocumentPath(),'\',substringcount(DocumentPath(),'\'))&lt;SPAN style="color: #ff0000;"&gt;, Chr(39), Chr(39)&amp;amp;Chr(39))&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to see if &lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt; works here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311616#M407666</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-09T15:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311617#M407667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for quick replies&amp;nbsp;&amp;nbsp; I will try both of these and report back &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311617#M407667</guid>
      <dc:creator>jjohnstonti618</dc:creator>
      <dc:date>2017-05-09T15:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311618#M407668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea behind my suggestion is same as &lt;A href="https://community.qlik.com/people/stigchel"&gt;stigchel&lt;/A&gt;‌‌'s, I guess I am just proposing the way to execute his and mine suggestion in your application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311618#M407668</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-09T15:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311619#M407669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So that definitely worked to get by the first part..thank you!!!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But later in the script when i actually load the data from the excel file, its looking for the double quote now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:17 0433 FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:17 0434 &lt;T&gt;&lt;/T&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:17 0435 (ooxml, embedded labels, table is [Sheet1])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Cannot open file: '&lt;SPAN style="font-size: 13.3333px;"&gt;T:\clients\Bob''s Apples\Actuals\Shipments Final.xlsx&lt;/SPAN&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution Failed&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2017-05-09 11:10:48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311619#M407669</guid>
      <dc:creator>jjohnstonti618</dc:creator>
      <dc:date>2017-05-09T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311620#M407670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add single quotes while loading also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ['$(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;vClientName)']&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311620#M407670</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-09T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311621#M407671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried doing that 3 different ways and it still is looking for the double quote in the client name... its ok i will troubleshoot this a little further...thanks for the help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:31:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311621#M407671</guid>
      <dc:creator>jjohnstonti618</dc:creator>
      <dc:date>2017-05-09T15:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311622#M407672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you can create two variables or change the variable back to a single quote?&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;Let vClientName = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Replace(&lt;/SPAN&gt;SubField(DocumentPath(),'\',substringcount(DocumentPath(),'\'))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, Chr(39), Chr(39)&amp;amp;Chr(39))&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do stuff&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;Let vClientName = &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Replace(&lt;/SPAN&gt;SubField(DocumentPath(),'\',substringcount(DocumentPath(),'\'))&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;, &lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Chr(39)&amp;amp;Chr(39)&lt;/STRONG&gt;, Chr(39))&lt;/SPAN&gt;;&lt;/STRONG&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;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FROM ....;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:42:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311622#M407672</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-09T15:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311623#M407673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked... you rock!&amp;nbsp; Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 15:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311623#M407673</guid>
      <dc:creator>jjohnstonti618</dc:creator>
      <dc:date>2017-05-09T15:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311624#M407674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice solution as always from Sunny.&amp;nbsp; Note that you can get the last folder in the path by using a negative index in substring:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(DocumentPath(),'\',-2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little neater than the substringcount(). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 16:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311624#M407674</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-05-09T16:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ignoring apostrophes in folder name</title>
      <link>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311625#M407675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob!!! Looking forward to meeting with you at the Qonnections &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 00:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ignoring-apostrophes-in-folder-name/m-p/1311625#M407675</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-10T00:07:04Z</dc:date>
    </item>
  </channel>
</rss>

