<?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 Why does this simple script generate an error?!?!? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257638#M710433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Cheers guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jun 2011 10:31:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-02T10:31:11Z</dc:date>
    <item>
      <title>Why does this simple script generate an error?!?!?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257634#M710426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Hi all&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;I am trying to generate a table with load times. For the life of me i can't understand why this generates an error. If i change the Let's to Set's it works, but will not give me the proper start time.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;Any ideas??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;vStartTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;()&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....running script for about 2 minutes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LET&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;vEndTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;()&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;LoadTime:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;'Stage1'&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;Stage&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 9pt; font-family: 'Courier New';"&gt;$(vStartTime)&lt;/EM&gt;&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;StartTime&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #646464; font-size: 9pt; font-family: 'Courier New';"&gt;$(vEndTime)&lt;/EM&gt;&lt;/STRONG&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;EndTime&lt;/SPAN&gt; &lt;STRONG style="color: blue; font-size: 9pt; font-family: 'Courier New';"&gt;AUTOGENERATE&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: green; font-size: 9pt;"&gt;PS I'm running QlikView 9&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Cheers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Robbie&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257634#M710426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-01T14:21:27Z</dc:date>
    </item>
    <item>
      <title>Why does this simple script generate an error?!?!?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257635#M710428</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;just enclose your variables in simple quotes in th eload statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;LoadTime:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;'Stage1'&lt;/SPAN&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;Stage&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 9pt; color: #646464; font-family: 'Courier New';"&gt;'$(vStartTime)'&lt;/EM&gt;&lt;/STRONG&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;StartTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="font-size: 9pt; color: #646464; font-family: 'Courier New';"&gt;'$(vEndTime)'&lt;/EM&gt;&lt;/STRONG&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;AS&lt;/STRONG&gt; &lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;EndTime&lt;/SPAN&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;AUTOGENERATE&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;)&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt;that should do it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; color: green; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257635#M710428</guid>
      <dc:creator>pat_agen</dc:creator>
      <dc:date>2011-06-01T14:29:10Z</dc:date>
    </item>
    <item>
      <title>Why does this simple script generate an error?!?!?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257636#M710430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X.ReloadTime:&lt;/P&gt;&lt;P&gt;REPLACE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;now() as ReloadTime&lt;/P&gt;&lt;P&gt;AUTOGENERATE (1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;///Script...........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// At end of Script Put below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET StartTime = num(peek('ReloadTime',-1,'X.ReloadTime'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X.LoadTime:&lt;/P&gt;&lt;P&gt;REPLACE LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;interval(now() - $(StartTime),'h:m:ss') as LoadTime&lt;/P&gt;&lt;P&gt;AUTOGENERATE (1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:31:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257636#M710430</guid>
      <dc:creator>patrickanderson</dc:creator>
      <dc:date>2011-06-01T14:31:39Z</dc:date>
    </item>
    <item>
      <title>Why does this simple script generate an error?!?!?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257637#M710432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; if you create a line in your load script and type this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-family: Courier New;"&gt;LET&lt;/STRONG&gt; &lt;SPAN style="color: green; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;vStartTime&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt; = '=&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;Now&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: &amp;amp;quot;Courier New&amp;amp;quot;; font-size: 9pt;"&gt;()'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jun 2011 14:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257637#M710432</guid>
      <dc:creator />
      <dc:date>2011-06-01T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Why does this simple script generate an error?!?!?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257638#M710433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Cheers guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2011 10:31:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-does-this-simple-script-generate-an-error/m-p/257638#M710433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-02T10:31:11Z</dc:date>
    </item>
  </channel>
</rss>

