<?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: Script Line Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797603#M1033848</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The script is nothing much. A straight forward load statement to load few fields from a qvd and then I am tring to create these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First 2 variables are created correctly, its just when I am trying to create the third variable i.e. vCount3, it throws a script line error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using 'Fieldvalue' function instead of peek as well. But same error. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Jan 2015 13:42:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-30T13:42:26Z</dc:date>
    <item>
      <title>Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797600#M1033843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I am getting a script line error while using Peek function to create a variable :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCount3&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('MyField', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vCount2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;,'Test1'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;Where&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;LET&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCount2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = '$(vCount1)/2';&lt;BR /&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&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;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCount1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #808080; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Count(Distinct MyField)'; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797600#M1033843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T13:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797601#M1033845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please copy paste whole script , so can help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Neetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797601#M1033845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797602#M1033847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right side of let instruction without apex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:39:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797602#M1033847</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-30T13:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797603#M1033848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The script is nothing much. A straight forward load statement to load few fields from a qvd and then I am tring to create these variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First 2 variables are created correctly, its just when I am trying to create the third variable i.e. vCount3, it throws a script line error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using 'Fieldvalue' function instead of peek as well. But same error. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:42:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797603#M1033848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T13:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797604#M1033849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alessandro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean ' ' by apex?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797604#M1033849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T13:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797605#M1033850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Okay, so i haved added ' ' , now there is no error but it returns an empty vCount3, so the variable expression now looks like:&lt;/P&gt;&lt;P&gt;LET vCount3 = Peek ('MyField', '$(vCount2)', Test1');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but returns an empty value. Any clues?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 13:55:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797605#M1033850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T13:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797606#M1033851</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 check value in variable vCount2 using textbox in ui.&lt;/P&gt;&lt;P&gt;and check if value for previous row in table is not null.&lt;/P&gt;&lt;P&gt;see how many records are in table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 14:07:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797606#M1033851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797607#M1033852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCount1 and vCount2 both give correct results.&lt;/P&gt;&lt;P&gt;And none of the row is null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 14:10:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797607#M1033852</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-30T14:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797608#M1033853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000;"&gt;LET&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCount2&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = $(vCount1)/2;&lt;BR /&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&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;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCount1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = Count(Distinct MyField); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797608#M1033853</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-01-30T15:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797609#M1033854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the value of vCount2? It must be an integer for PEEK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can test your peek command using&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LET&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vCountTest&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Peek&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;('MyField', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;, 'Test1'); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:10:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797609#M1033854</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-01-30T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797610#M1033855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Albert is correct, vCount1 is wrong and so you don't get an integer in vCount2 and Peek doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 21:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797610#M1033855</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-01-30T21:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Line Error</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797611#M1033856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #000000; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Variable vCount1 is used (in vCount2) before it is assigned a value.&lt;/P&gt;&lt;P&gt;Also, although vCount1 contains a 'string', its value when evaluated in vCount2 will return a null, since a field value count cannot be computed like the way it is done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 09:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Line-Error/m-p/797611#M1033856</guid>
      <dc:creator />
      <dc:date>2015-01-31T09:18:22Z</dc:date>
    </item>
  </channel>
</rss>

