<?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: Qlik Sense Script Line Error on For Loop in Version 2.2.0 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061760#M17107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw you read another similar discussion. Did you enable the legacy mode as mentioned in that discussion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 13:34:29 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-03-24T13:34:29Z</dc:date>
    <item>
      <title>Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061756#M17103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that used to work with previous versions and definitely worked in QlikView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14587762899139373" jivemacro_uid="_14587762899139373"&gt;
&lt;P&gt;[tmpTable]:&lt;/P&gt;
&lt;P&gt;Generic Load * Resident [Demographic Responses];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[Demographic Information]:&lt;/P&gt;
&lt;P&gt;Load Distinct [Respondent ID] as [Respondent ID]&lt;/P&gt;
&lt;P&gt;Resident [Demographic Responses];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 0 to NoOfTables()&lt;/P&gt;
&lt;P&gt;TableList:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Load TableName($(i)) as [TableName] AUTOGENERATE 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WHERE WildMatch (TableName($(i)), 'tmpTable.*');&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;FOR i = 1 to FieldValueCount('Tablename')&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LET vTable = FieldValue('Tablename', $(i));&lt;/P&gt;
&lt;P&gt;&amp;nbsp; LEFT JOIN ('Demographic Information') LOAD * RESIDENT [$(vTable)];&lt;/P&gt;
&lt;P&gt;&amp;nbsp; DROP TABLE [$(vTable)];&lt;/P&gt;
&lt;P&gt;NEXT i&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Tables [Demographic Responses], TableList;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first For loop works, but the second does not for some reason. I assure you there is NO problem with the data in [Demographic Responses]. I've tried other types of loops and I am out of ideas. I get the following error every time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Qlik Sense Line Error.PNG" class="jive-image image-1" src="/legacyfs/online/119243_Qlik Sense Line Error.PNG" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061756#M17103</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-03-23T23:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061757#M17104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699; background-color: #f8f8f8;"&gt;Load&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; TableName($(i)) &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699; background-color: #f8f8f8;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; &lt;SPAN style="color: #ff0000;"&gt;[&lt;STRONG&gt;Table&lt;SPAN style="text-decoration: underline;"&gt;N&lt;/SPAN&gt;ame&lt;/STRONG&gt;]&lt;/SPAN&gt; AUTOGENERATE 1&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699; background-color: #f8f8f8;"&gt;FOR&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; i = 1 &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699; background-color: #f8f8f8;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; FieldValueCount(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue; background-color: #f8f8f8;"&gt;'&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Table&lt;SPAN style="text-decoration: underline;"&gt;n&lt;/SPAN&gt;ame&lt;/STRONG&gt;&lt;/SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;TableName and Tablename are two different fields. So, just a typo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 07:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061757#M17104</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-24T07:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061758#M17105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Missing Capital "N"&amp;nbsp;&amp;nbsp; in ur TableName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u shud use the same fieldnames or table names same for entire document.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 08:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061758#M17105</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-03-24T08:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061759#M17106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That has been corrected, still the same error. I was testing a bunch of different things which is why that mistake is in the original question. I have also tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;While -&amp;gt; Loop instead of For -&amp;gt; Next&lt;/LI&gt;&lt;LI&gt;Doing&amp;nbsp; "&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;FieldValueCount(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue; background-color: #f8f8f8;"&gt;'Tablename'&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt;) STEP 1"&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;The table names include spaces which I replaced with "_"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debugging I'm seeing some weird things happen where the variable "i" is exceeding the actual count of field values and then the loop is breaking. I'll keep at it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061759#M17106</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-03-24T13:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061760#M17107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I saw you read another similar discussion. Did you enable the legacy mode as mentioned in that discussion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:34:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061760#M17107</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-24T13:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061761#M17108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have not. This is Qlik Sense server I'm working on. Does it still work with that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061761#M17108</guid>
      <dc:creator>TKendrick20</dc:creator>
      <dc:date>2016-03-24T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Script Line Error on For Loop in Version 2.2.0</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061762#M17109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, unfortunately it's a server wide setting. And it has security implications so this is not a step to take lightly. See &lt;A href="https://community.qlik.com/qlik-blogpost/4294"&gt;Qlik Sense Legacy mode&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 13:48:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Script-Line-Error-on-For-Loop-in-Version-2-2-0/m-p/1061762#M17109</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-24T13:48:14Z</dc:date>
    </item>
  </channel>
</rss>

