<?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: For each Semantic Error over QlikView versions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98154#M604012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for the response.&lt;/P&gt;&lt;P&gt;The current version is actually QV 12.20.20700.0 &lt;STRONG&gt;SR6&lt;/STRONG&gt;, downloaded today from: &lt;A href="https://www.qlik.com/us/try-or-buy/download-qlikview" title="https://www.qlik.com/us/try-or-buy/download-qlikview"&gt;https://www.qlik.com/us/try-or-buy/download-qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue occurs on it.&lt;BR /&gt;And running on QV12 SR3 or QV11 SR12 goes ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2018 12:20:03 GMT</pubDate>
    <dc:creator>kira_whopper</dc:creator>
    <dc:date>2018-09-06T12:20:03Z</dc:date>
    <item>
      <title>For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98151#M604007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing a problem with QlikView 12 from SR3 to SR6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside SR3, I'm running the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each vYear in DirList('$(vSourceBacklog)Reports\*')&lt;/P&gt;&lt;P&gt;TRACE Lendo pasta: $(vYear);&lt;/P&gt;&lt;P&gt;FOR Each vMonth in DirList('$(vYear)\*')&lt;/P&gt;&lt;P&gt;TRACE Lendo pasta: $(vMonth);&lt;/P&gt;&lt;P&gt;FOR Each vExport in FileList('$(vMonth)\closed_requests_*.xlsx')&lt;/P&gt;&lt;P&gt;// Some code here&lt;/P&gt;&lt;P&gt;NEXT &lt;SPAN style="font-size: 13.3333px;"&gt;vExport&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;NEXT vMonth;&lt;/P&gt;&lt;P&gt;NEXT vYear;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs perfectly fine, but when I open it on SR6 I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Semantic error&lt;/P&gt;&lt;P&gt;The control statement is not correctly matched with its corresponding start statement&lt;/P&gt;&lt;P&gt;NEXT vExport&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I click "Ok" on the error message, it goes out of the For Each showing the same error for vMonth and vYear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference I noticed from both QlikView versions is that inside SR6 script, variables are not gray italic anymore (images attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 18:37:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98151#M604007</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2018-09-05T18:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98152#M604010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That piece of script works fine in QV 12.20 SR7, might be a bug in some versions.&lt;/P&gt;&lt;P&gt;Upgrading QV should resolve the issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2018 20:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98152#M604010</guid>
      <dc:creator>vunguyenq89</dc:creator>
      <dc:date>2018-09-05T20:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98153#M604011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe that version does not like the variable in the end of NEXT.&lt;BR /&gt;have you tried just "next"&lt;BR /&gt;If i'm not mistaken, it dosen't even need the ";".&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 Each vYear in DirList('$(vSourceBacklog)Reports\*')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TRACE Lendo pasta: $(vYear);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR Each vMonth in DirList('$(vYear)\*')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TRACE Lendo pasta: $(vMonth);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR Each vExport in FileList('$(vMonth)\closed_requests_*.xlsx')&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;// Some code here&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT&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;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;In my experience semantic error can also happen sooner than the script error actually occurs (even if it says "occured near next vExport").&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Make an alternative app and just run this part of script to be sure it's none of the other next in any other part of the code.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 11:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98153#M604011</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-06T11:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98154#M604012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, thanks for the response.&lt;/P&gt;&lt;P&gt;The current version is actually QV 12.20.20700.0 &lt;STRONG&gt;SR6&lt;/STRONG&gt;, downloaded today from: &lt;A href="https://www.qlik.com/us/try-or-buy/download-qlikview" title="https://www.qlik.com/us/try-or-buy/download-qlikview"&gt;https://www.qlik.com/us/try-or-buy/download-qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the issue occurs on it.&lt;BR /&gt;And running on QV12 SR3 or QV11 SR12 goes ok.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98154#M604012</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2018-09-06T12:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98155#M604013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on &lt;A href="https://help.qlik.com/pt-BR/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm" title="https://help.qlik.com/pt-BR/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each.htm"&gt;https://help.qlik.com/pt-BR/qlikview/November2017/Subsystems/Client/Content/Scripting/ScriptControlStatements/For%20Each…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you're actually correct, but even changing the sintax, the issue remains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to remove the internal loops (vExport and after, vMonth) and the external loops (vYear and after, vMonth), but it was no go.&lt;/P&gt;&lt;P&gt;While changing the syntax, it gives the same error informing only the "Next" statement without the variable in front of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My confusion here is that it runs fine on other QlikView version on the same computer without changing anything on the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98155#M604013</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2018-09-06T12:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98156#M604014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have QV12 12.10 SR9 and it works fine there too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98156#M604014</guid>
      <dc:creator>kira_whopper</dc:creator>
      <dc:date>2018-09-06T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98157#M604015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, if that seems to be the issue then i suggest you to upgrade the QV version.&lt;BR /&gt;Because trying to solve this with a work-around is not a best practice.&lt;BR /&gt;But never-the-less you can try another work-around:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ERRORMODE = 0;&lt;/P&gt;&lt;P&gt;*Your script here*&lt;/P&gt;&lt;P&gt;SET ERRORMODE = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it loads the data, then your problems are solved. Even if you upgrade it later the errorscript won't be an issue since the code in other versions is working flawlessly. If not, i would upgrade.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Good luck!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 10:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98157#M604015</guid>
      <dc:creator>Kalmer</dc:creator>
      <dc:date>2018-09-07T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: For each Semantic Error over QlikView versions</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98158#M604016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem could lie inside the inner loop. Something like an If without an End If. This might be reported as an invalid Next, even though the Next is not causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would not recommend simply hiding the error until you know exactly why the error is occurring. If you are certain that it is a bug, upgrading would be a better option than hiding the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In recent versions, Qlik has tightened the semantic checks, so minor issues which the parser ignored are throwing errors now. See the September 2017 release notes for more information on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2018 11:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-Semantic-Error-over-QlikView-versions/m-p/98158#M604016</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-09-07T11:10:15Z</dc:date>
    </item>
  </channel>
</rss>

