<?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 line Error: end if in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301523#M705909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I think you are using loop on some if condition. Please see if you have end your if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 11:32:00 GMT</pubDate>
    <dc:creator>vijay_iitkgp</dc:creator>
    <dc:date>2012-01-24T11:32:00Z</dc:date>
    <item>
      <title>Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301522#M705908</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;Can someone tell me what is wrong with my report?&lt;/P&gt;&lt;P&gt;Please find the attached error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/10570_error.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Br&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Anta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301522#M705908</guid>
      <dc:creator />
      <dc:date>2012-01-24T11:17:30Z</dc:date>
    </item>
    <item>
      <title>Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301523#M705909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I think you are using loop on some if condition. Please see if you have end your if condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301523#M705909</guid>
      <dc:creator>vijay_iitkgp</dc:creator>
      <dc:date>2012-01-24T11:32:00Z</dc:date>
    </item>
    <item>
      <title>Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301524#M705910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not having the script is kind of mission impossible to say where the problem is. But according to the error shown it seems that there is a line containing "end if" that either is not closing a previous opening IF or it appears when it shouldn't do (for example, within a LOAD statement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 11:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301524#M705910</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-24T11:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301525#M705911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;check if you have an simicolon ";" after you ENDIF statement. If yes. Delete it. It is not necessary and will throw the shown error.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Sabine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 08:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301525#M705911</guid>
      <dc:creator />
      <dc:date>2014-08-22T08:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301526#M705912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 12:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301526#M705912</guid>
      <dc:creator />
      <dc:date>2014-08-22T12:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301527#M705913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;I had similar problem.&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;I found that, in case of statement &lt;STRONG&gt; If&amp;nbsp; …. End If&lt;/STRONG&gt;,&amp;nbsp;&amp;nbsp; QV checks the syntax&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;after&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt; Exit script;&amp;nbsp;&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/alert.png" /&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;But it shows error only in one case - when using Dollar-Sign Expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Check following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;CASE 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;if $(NoVariable) = 1 then&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Then You get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in;"&gt;&lt;IMG __jive_id="76951" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/76951_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;CASE 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;EXIT Script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;if NoVariable= 1 then&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;No error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Check also what happens when you put these &lt;STRONG&gt;if … endif&lt;/STRONG&gt; before Exit Script;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;(I use QV11 sr6)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 09:34:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301527#M705913</guid>
      <dc:creator />
      <dc:date>2015-02-03T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301528#M705915</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 share the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:$@M"&gt;$@M&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 09:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301528#M705915</guid>
      <dc:creator />
      <dc:date>2015-02-03T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301529#M705917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had the same Problem. I fixed the Problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Behind !!&amp;nbsp; the "Exit script" sheet I had some "bad coding" which was red underlined.&lt;/P&gt;&lt;P&gt;After Setting the "bad coding" in // Comment Lines the script run's without Errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that QlikView checks the complete script coding - also after the Exit script;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 12:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301529#M705917</guid>
      <dc:creator>klaus_kapero</dc:creator>
      <dc:date>2015-02-24T12:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script line Error: end if</title>
      <link>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301530#M705919</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 had a similar issue, and I fixed this as you say, by removing the dollars $ in the condition after the IF. &lt;/P&gt;&lt;P&gt;It seems that the $ are not nécessary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm that Qlikview check the whole script in spite of the EXIT SCRIPT instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your fix has permited to me to stop loosing my time in this crazy bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Georges&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 10:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-line-Error-end-if/m-p/301530#M705919</guid>
      <dc:creator>georges_galvan</dc:creator>
      <dc:date>2015-04-14T10:35:28Z</dc:date>
    </item>
  </channel>
</rss>

