<?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: unexpected token using variable as pathname in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922673#M1218621</link>
    <description>&lt;P&gt;The combining of the two variables might go wrong. Also the call of the variables might need a wrapping. You may try it in this way:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load * from &lt;STRONG&gt;[&lt;/STRONG&gt;$(variable1)&lt;STRONG&gt;]&lt;/STRONG&gt; (qvx);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load * from &lt;STRONG&gt;[&lt;/STRONG&gt;$(url1&amp;nbsp;)$(convertedurl)&lt;STRONG&gt;]&lt;/STRONG&gt; (qvx);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 11:32:39 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-04-26T11:32:39Z</dc:date>
    <item>
      <title>unexpected token using variable as pathname</title>
      <link>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922563#M1218617</link>
      <description>&lt;P&gt;I created variable1 from two other variables.&lt;/P&gt;
&lt;P&gt;The new variable is an url to load data from sharepoint.&lt;/P&gt;
&lt;P&gt;In my script I have Load * from $(variable1)(qvx);&lt;/P&gt;
&lt;P&gt;When loading I get an error saying unexpected token&amp;nbsp;Unexpected token: 'url1', expected one of: 'utf8', 'utf7', 'unicode', 'URL', 'UserAgent', 'biff', 'dif', ...&lt;/P&gt;
&lt;P&gt;and at the end of the message :&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;(&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;url1&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;)&amp;amp;(converted_url)&lt;/P&gt;
&lt;P&gt;(qvx)&lt;/P&gt;
&lt;P&gt;url1 and convertedurl are the variables where variable1 was constructed from.&lt;/P&gt;
&lt;P&gt;When I put variable1 in a textbox and copy the text from that textbox in a browser I get the results I expect.&lt;/P&gt;
&lt;P&gt;When I use the url as plain text in my script it works too.&lt;/P&gt;
&lt;P&gt;When I compare the plain text with the value of variable1 they are exactly the same.&lt;/P&gt;
&lt;P&gt;In my load script I tried various options using the variable like : from '$(variable1)' etc.&lt;/P&gt;
&lt;P&gt;what can I do more to find why I get this error message?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 09:01:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922563#M1218617</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2022-04-26T09:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: unexpected token using variable as pathname</title>
      <link>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922673#M1218621</link>
      <description>&lt;P&gt;The combining of the two variables might go wrong. Also the call of the variables might need a wrapping. You may try it in this way:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load * from &lt;STRONG&gt;[&lt;/STRONG&gt;$(variable1)&lt;STRONG&gt;]&lt;/STRONG&gt; (qvx);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Load * from &lt;STRONG&gt;[&lt;/STRONG&gt;$(url1&amp;nbsp;)$(convertedurl)&lt;STRONG&gt;]&lt;/STRONG&gt; (qvx);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 11:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922673#M1218621</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-04-26T11:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: unexpected token using variable as pathname</title>
      <link>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922738#M1218622</link>
      <description>&lt;P&gt;Wrapping between '[' and ']' was the solution. Using brackets with variables amongst all other syntax options is new to me&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 12:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/unexpected-token-using-variable-as-pathname/m-p/1922738#M1218622</guid>
      <dc:creator>curiousfellow</dc:creator>
      <dc:date>2022-04-26T12:41:05Z</dc:date>
    </item>
  </channel>
</rss>

