<?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: Scripting error qvds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895270#M659053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are too many records, I may consider this if I have nowhere else to go, I found the problem thought, not sure that the solution is, check my response to Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 11:14:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-11T11:14:58Z</dc:date>
    <item>
      <title>Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895250#M659033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been struggling for a while with qvd's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am receiving this error when running this code, what am I missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the Text function to try to change the data type as I was getting qvd's created for 201413, 201414 etc, I only want a file for every actual Period which runs from 2003 - 01 through 12, then 2014-01 to 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script line error: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR vPeriod =&amp;nbsp; to &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate TempPeriod:&lt;/P&gt;&lt;P&gt;LOAD distinct Text(HPeriod) as Period &lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING&lt;/P&gt;&lt;P&gt;order by HPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate TempMinMax:&lt;/P&gt;&lt;P&gt;LOAD FirstValue(HPeriod) as MinPeriod,&lt;/P&gt;&lt;P&gt;LastValue(HPeriod) as MaxPeriod &lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPeriodMin = Peek(MinPeriod);&lt;/P&gt;&lt;P&gt;LET vPeriodMax = Peek(MaxPeriod);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;/P&gt;&lt;P&gt;STORE TempData into HISTORYAGEING_$(vPeriod).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895250#M659033</guid>
      <dc:creator />
      <dc:date>2015-05-07T08:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895251#M659034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be your MinPeriod and MaxPeriod are not numeric values. Try may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Noconcatenate TempMinMax:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD &lt;STRONG&gt;Num(&lt;/STRONG&gt;FirstValue(HPeriod)&lt;STRONG&gt;)&lt;/STRONG&gt; as MinPeriod,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Num(&lt;/STRONG&gt;LastValue(HPeriod)&lt;STRONG&gt;)&lt;/STRONG&gt; as MaxPeriod&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident HISTORYAGEING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vPeriodMin = Peek(MinPeriod);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET vPeriodMax = Peek(MaxPeriod);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TempData:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;STORE TempData into HISTORYAGEING_$(vPeriod).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Drop table TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 08:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895251#M659034</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-07T08:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895252#M659035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the logic need to be different here. I will look to use FOR EACH Loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 09:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895252#M659035</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-05-07T09:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895253#M659036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, May 7, 2015 at 11:03 AM, Gabriel Oluwaseye &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 12:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895253#M659036</guid>
      <dc:creator />
      <dc:date>2015-05-07T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895254#M659037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still getting &lt;/P&gt;&lt;P&gt;Script line error: &lt;/P&gt;&lt;P&gt;FOR vPeriod =&amp;nbsp; to &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 12:56:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895254#M659037</guid>
      <dc:creator />
      <dc:date>2015-05-07T12:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895255#M659038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using calendar script to build this?&lt;/P&gt;&lt;P&gt;My reason for asking is, you can still use For Loop.&lt;/P&gt;&lt;P&gt;You just have to have a Data Island of all the dates between Min and Max of your date, then use For Loop.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:13:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895255#M659038</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-05-07T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895256#M659039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with quotes in your peek expression like this : LET vPeriodMin = Peek('MinPeriod');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 15:17:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895256#M659039</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-05-07T15:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895257#M659040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I built up a table from a resident load from the original table. Note&lt;/P&gt;&lt;P&gt;though the field is a Financialperiod, so 201501, 201502 etc. There are no&lt;/P&gt;&lt;P&gt;other date fields in use in this table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Thu, May 7, 2015 at 5:14 PM, Gabriel Oluwaseye &amp;lt;qcwebmaster@qlikview.com&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 06:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895257#M659040</guid>
      <dc:creator />
      <dc:date>2015-05-08T06:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895258#M659041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to understand the script below and implement it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to include notes where I feel clarification is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; LET &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vMin&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;FLoor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2015,04,20));&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;vMax&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;FLoor&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MakeDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(2015,04,30));&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;vDiff&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vMax&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;vMin&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; + 1; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// Plus 1 here ensure we have to full range of date differerence&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;DateIsland:&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;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vMin)&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;RecNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() -1 &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;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Minus 1 here ensures that the date starts from the vMin date in our loop&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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; (&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vDiff)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt;//Load full date range&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;FOR&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;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('DateIsland')&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LET&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;vQVDDate&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;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Date',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'DateIsland'),'YYYY-MM-DD');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;TRACE&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;$(vQVDDate)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//Here include your store procedure scripts&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;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 10:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895258#M659041</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2015-05-08T10:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895259#M659042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gabriel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand what your script does, the concern I have is still&lt;/P&gt;&lt;P&gt;that I do not have full dates, I only have one date field which is not a&lt;/P&gt;&lt;P&gt;fulldate, the field comes through from the database as YYYYMM, that is all&lt;/P&gt;&lt;P&gt;I have. This originally created the issue that I had that it created files&lt;/P&gt;&lt;P&gt;for non existant months, like month 13, 14, because it was a numeric, so&lt;/P&gt;&lt;P&gt;when it got to December 2014 it would create a 201413 after December and&lt;/P&gt;&lt;P&gt;just carried on with the months. The date range one you gave is really&lt;/P&gt;&lt;P&gt;going to help with later scripting on other models, but for this one with&lt;/P&gt;&lt;P&gt;only Financial periods, I am just not getting it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed the script to a for each loop. It now creates files, but&lt;/P&gt;&lt;P&gt;only for the last month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate TempPeriod:&lt;/P&gt;&lt;P&gt;LOAD HPeriod as Period&lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING&lt;/P&gt;&lt;P&gt;order by HPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each Period in TempPeriod&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;/P&gt;&lt;P&gt;          ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          STORE TempData INTO HISTORYAGEING_$(vPeriod).qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          DROP TABLE TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, May 8, 2015 at 12:23 PM, Gabriel Oluwaseye &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 11:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895259#M659042</guid>
      <dc:creator />
      <dc:date>2015-05-08T11:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895260#M659043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried what I suggested in my previous post? Using quotes in your peek?&lt;/P&gt;&lt;P&gt;LET vPeriodMin = Peek('MinPeriod');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 11:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895260#M659043</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-05-08T11:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895261#M659044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this now with the inverted commas, I am still getting non existing months created between 201412 and 201501, that would be because the field is numbers. &lt;/P&gt;&lt;P&gt;Vincent, I am not sure where your specific suggestion is, is what i did basically right, and I am just missing something small somewhere? I am going to have a relook for now at sunindia's suggestion, and Gabril's as well, think I understand better&amp;nbsp; what he is getting at as well after spending more time looking at his code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate TempPeriod:&lt;/P&gt;&lt;P&gt;LOAD distinct Text(HPeriod) as Period&lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING&lt;/P&gt;&lt;P&gt;order by HPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Noconcatenate TempMinMax:&lt;/P&gt;&lt;P&gt;LOAD FirstValue(HPeriod) as MinPeriod,&lt;/P&gt;&lt;P&gt;LastValue(HPeriod) as MaxPeriod&lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPeriodMin = Peek('MinPeriod');&lt;/P&gt;&lt;P&gt;LET vPeriodMax = Peek('MaxPeriod');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;/P&gt;&lt;P&gt;STORE TempData into HISTORYAGEING_$(vPeriod).qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table TempData;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895261#M659044</guid>
      <dc:creator />
      <dc:date>2015-05-08T12:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895262#M659045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lets start this from beginning. What format is HPeriod stored in the database? To me the format of HPeriod may have something to do with all the issues that you are getting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895262#M659045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-05-08T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895263#M659046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vincent is right. Peek parameters FieldName and TableName must be quoted, or the peek function will return...nothing. That's why the line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR&amp;nbsp; vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;expands to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vPeriod = to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two times nothing results in an illegal FOR statement...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895263#M659046</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-05-08T12:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895264#M659047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The noconcatenate is in a wrong place and not needed.&amp;nbsp; Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempPeriod:&lt;BR /&gt;LOAD distinct Period&lt;BR /&gt;Resident HISTORYAGEING&lt;BR /&gt;order by HPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPeriodMin = Peek('Period',&lt;STRONG&gt;0,&lt;/STRONG&gt;'TempPeriod');&lt;BR /&gt;LET vPeriodMax = Peek('Period'&lt;STRONG&gt;,-1,&lt;/STRONG&gt; 'TempPeriod');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TempPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;BR /&gt; LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;BR /&gt; STORE TempData into HISTORYAGEING_$(vPeriod).qvd;&lt;BR /&gt; Drop table TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: a few fixes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895264#M659047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-08T12:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895265#M659048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SQL type is an integer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 12:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895265#M659048</guid>
      <dc:creator />
      <dc:date>2015-05-08T12:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895266#M659049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script I have now, had to put noconcatenate back on the one r it added one row to the original table,the problem now is I have data for 201307 to201408 on the model, I commented out TempPeriod, and it is showing all the Periods, though, when exporting to qvd it only creates 201307 and then 201308, nothing else, that says to me that something may be wrong in the ordering where it gets &lt;SPAN style="font-size: 13.3333330154419px;"&gt; Peek('Period',-1, 'TempPeriod'), but it is not making sense to me at all why it is doing it&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempPeriod:&lt;/P&gt;&lt;P&gt;LOAD distinct Period&lt;/P&gt;&lt;P&gt;Resident HISTORYAGEING&lt;/P&gt;&lt;P&gt;order by HPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vPeriodMin = Peek('Period',0,'TempPeriod');&lt;/P&gt;&lt;P&gt;LET vPeriodMax = Peek('Period',-1, 'TempPeriod');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TempPeriod;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vPeriod = $(vPeriodMin) to $(vPeriodMax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;LOAD * Resident HISTORYAGEING where HPeriod = $(vPeriod);&lt;/P&gt;&lt;P&gt;STORE TempData into HISTORYAGEING_$(vPeriod).qvd;&lt;/P&gt;&lt;P&gt;Drop table TempData;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895266#M659049</guid>
      <dc:creator />
      <dc:date>2015-05-08T13:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895267#M659050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is where the troubleshooting starts...&lt;/P&gt;&lt;P&gt;1. Check what the variables' values are.&lt;/P&gt;&lt;P&gt;2. If they're incorrect, comment the script after loading the TempPeriod, and check what is in TempPeriod.&amp;nbsp; You probably need to rename the field there, because it also exists in the other table and it is harder to find what exactly in the TempPeriod table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:54:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895267#M659050</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-08T13:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895268#M659051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also try to use the debug mode in order to follow step by step your loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895268#M659051</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2015-05-08T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting error qvds</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895269#M659052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table field has all the correct values, I am aliasing it, in the&lt;/P&gt;&lt;P&gt;original table it is HPeriod, in the TempTable it is Period. It comes&lt;/P&gt;&lt;P&gt;through from SQL as an interger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I check the variable values the min value is 200307 and the maxValue&lt;/P&gt;&lt;P&gt;is 200308 where it should be 200408, not really making sense, as if I order&lt;/P&gt;&lt;P&gt;the values by loadorder they still show from 201307 through 201408. Any&lt;/P&gt;&lt;P&gt;idea why peek -1is wrong if the load order seems to be correct. I also have&lt;/P&gt;&lt;P&gt;a order by in the Load statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Fri, May 8, 2015 at 3:55 PM, Michael Solomovich &amp;lt;qcwebmaster@qlikview.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting-error-qvds/m-p/895269#M659052</guid>
      <dc:creator />
      <dc:date>2015-05-11T10:34:22Z</dc:date>
    </item>
  </channel>
</rss>

