<?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 Script problem QV11 vs QV9 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548574#M557059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line off script which works perfectly fine when developed in QV version 11. When I transfer it to the server environment which is QV version 9 and reload the script the line [Project ID] stays empty (other 2 fields work as normal).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guys help me why this line stays empty? Is there something with this Upper or Mid function in QV version 9? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;File&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;filelist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ('\\proqviewhq-01\OnePM\*.pdf')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(File)' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( '$(File)' ) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(File)' ,69, 9)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Project ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;File &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jul 2013 07:05:23 GMT</pubDate>
    <dc:creator>pauldamen</dc:creator>
    <dc:date>2013-07-08T07:05:23Z</dc:date>
    <item>
      <title>Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548574#M557059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a line off script which works perfectly fine when developed in QV version 11. When I transfer it to the server environment which is QV version 9 and reload the script the line [Project ID] stays empty (other 2 fields work as normal).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you guys help me why this line stays empty? Is there something with this Upper or Mid function in QV version 9? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;each&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;File&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;filelist&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ('\\proqviewhq-01\OnePM\*.pdf')&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; '$(File)' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( '$(File)' ) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FileTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(File)' ,69, 9)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Project ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;NEXT&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;File &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 07:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548574#M557059</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2013-07-08T07:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548575#M557060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, there is no difference between QlikView 9 and QlikView 11 here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather suspect that your file paths change and this affect the result from the Mid-function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548575#M557060</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-07-08T08:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548576#M557061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that the other 2 fields are working correctly so if the location would be the problem I would expect the other 2 fields to be empty as well.&lt;/P&gt;&lt;P&gt;Any ideas why only this field would be empty?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548576#M557061</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2013-07-08T08:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548577#M557062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your answer got me thinking and I found the solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mid function is starting at character 69, but the file path changed on the server and is much shorter, so it should start at 25. It is empty because character 69 does not excists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548577#M557062</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2013-07-08T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548578#M557063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First 2 field calculation based file attribute..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd is purely based on file name. So please check file name exactly. It should contain atlease 69 letters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548578#M557063</guid>
      <dc:creator />
      <dc:date>2013-07-08T08:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script problem QV11 vs QV9</title>
      <link>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548579#M557064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the other fields are returning values, then it means that the script indeed has found the files. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the Mid(x, 69, 9) could still be wrong - the "69" and "9" are hard-coded numbers that perhaps should be something else in the server environment. &lt;SPAN style="font-size: 10pt;"&gt;I wouldn't hard-code these. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would instead use the Index() function to calculate these numbers. For example, if you want the string from the second-to-last backslash, you can calculate the position if this by using Index(x,'\',-2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;HIC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jul 2013 08:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-problem-QV11-vs-QV9/m-p/548579#M557064</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-07-08T08:40:54Z</dc:date>
    </item>
  </channel>
</rss>

