<?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: Unexpected token error (12.60) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851759#M1215679</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;liteblue&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:833,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;9&amp;quot;:0,&amp;quot;11&amp;quot;:3,&amp;quot;12&amp;quot;:0}" data-sheets-note="&amp;lt;a href=&amp;quot;https://www.liteblue.app/&amp;quot;&amp;gt;liteblue&amp;lt;a/&amp;gt;"&gt;&lt;A href="https://www.liteblue.app/" target="_self"&gt;liteblue&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;wrote:&lt;BR /&gt;
&lt;P&gt;i get a unexpected token error for the following lines. it works well in 12.10&lt;/P&gt;
&lt;P&gt;Let RowCount = NumMax(NoOfRows('Event'),0)-1;&lt;BR /&gt;For i=0 to '$(RowCount)'&lt;BR /&gt;Let vTempVarName = eventvar &amp;amp; peek('Event_id', $(i));&lt;BR /&gt;Let vTempVarValue = peek('Event_Name', $(i));&lt;BR /&gt;&lt;STRONG&gt;Let $(vTempVarName) ='$(vTempVarValue)';&lt;/STRONG&gt;&lt;BR /&gt;Let $(vTempMsgName) = '$(NoteText)';&lt;BR /&gt;Let $(vTempMsgid) = '$(noteID)';&lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;The debug data displays the following. and the error is happening in the above bold line.&lt;/P&gt;
&lt;P&gt;Let 52 =''&lt;/P&gt;
&lt;P&gt;Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;logs in 12.10 below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2021-10-25 18:53:47 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;2021-10-25 18:53:48 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;2021-10-25 18:53:48 0176 Let 52 =''&lt;BR /&gt;2021-10-25 18:53:49 0177 Let = ''&lt;BR /&gt;2021-10-25 18:53:50 0178 Let = ''&lt;/P&gt;
&lt;P&gt;Logs in 12.60 below:&lt;/P&gt;
&lt;P&gt;20211025T171408.854+1100 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;20211025T171408.873+1100 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;20211025T171408.888+1100 Error: Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;BR /&gt;20211025T171409.644+1100 0177 Let = ''&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can i expect any solution with this issue?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-body js-comment-edit-hide"&gt;&lt;SPAN class="comment-copy"&gt;An "unexpected token" is likely some illegal character code. Such a code is likely not to show up when you print to console. Therefore, print out the string one character at a time or use a protocol analyzer or debugger etc. to see the actual bytes of the string&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Oct 2021 09:28:20 GMT</pubDate>
    <dc:creator>Pitts451</dc:creator>
    <dc:date>2021-10-26T09:28:20Z</dc:date>
    <item>
      <title>Unexpected token error (12.60)</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851225#M1215653</link>
      <description>&lt;P&gt;i get a unexpected token error for the following lines. it works well in 12.10&lt;/P&gt;
&lt;P&gt;Let RowCount = NumMax(NoOfRows('Event'),0)-1;&lt;BR /&gt;For i=0 to '$(RowCount)'&lt;BR /&gt;Let vTempVarName = eventvar &amp;amp; peek('Event_id', $(i));&lt;BR /&gt;Let vTempVarValue = peek('Event_Name', $(i));&lt;BR /&gt;&lt;STRONG&gt;Let $(vTempVarName) ='$(vTempVarValue)';&lt;/STRONG&gt;&lt;BR /&gt;Let $(vTempMsgName) = '$(NoteText)';&lt;BR /&gt;Let $(vTempMsgid) = '$(noteID)';&lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;The debug data displays the following. and the error is happening in the above bold line.&lt;/P&gt;
&lt;P&gt;Let 52 =''&lt;/P&gt;
&lt;P&gt;Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;logs in 12.10 below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2021-10-25 18:53:47 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;2021-10-25 18:53:48 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;2021-10-25 18:53:48 0176 Let 52 =''&lt;BR /&gt;2021-10-25 18:53:49 0177 Let = ''&lt;BR /&gt;2021-10-25 18:53:50 0178 Let = ''&lt;/P&gt;
&lt;P&gt;Logs in 12.60 below:&lt;/P&gt;
&lt;P&gt;20211025T171408.854+1100 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;20211025T171408.873+1100 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;20211025T171408.888+1100 Error: Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;BR /&gt;20211025T171409.644+1100 0177 Let = ''&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can i expect any solution with this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 10:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851225#M1215653</guid>
      <dc:creator>venkatkp</dc:creator>
      <dc:date>2021-10-25T10:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token error (12.60)</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851532#M1215666</link>
      <description>&lt;P&gt;Hi Venkatkp&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;There were some mayor changes in Set Analysis from 12.10 to newer versions, pleaser refer to the following article:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Knowledge/Quotes-in-Set-Analysis-change-in-behavior-quot-error-in/ta-p/1716711" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Quotes-in-Set-Analysis-change-in-behavior-quot-error-in/ta-p/1716711&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851532#M1215666</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2021-10-25T21:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token error (12.60)</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851542#M1215667</link>
      <description>&lt;P&gt;I can see the major changes from a Set analysis perspective. I can't see any information around the script changes. do you have any other references?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 21:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851542#M1215667</guid>
      <dc:creator>venkatkp</dc:creator>
      <dc:date>2021-10-25T21:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token error (12.60)</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851759#M1215679</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;liteblue&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:833,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;9&amp;quot;:0,&amp;quot;11&amp;quot;:3,&amp;quot;12&amp;quot;:0}" data-sheets-note="&amp;lt;a href=&amp;quot;https://www.liteblue.app/&amp;quot;&amp;gt;liteblue&amp;lt;a/&amp;gt;"&gt;&lt;A href="https://www.liteblue.app/" target="_self"&gt;liteblue&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;wrote:&lt;BR /&gt;
&lt;P&gt;i get a unexpected token error for the following lines. it works well in 12.10&lt;/P&gt;
&lt;P&gt;Let RowCount = NumMax(NoOfRows('Event'),0)-1;&lt;BR /&gt;For i=0 to '$(RowCount)'&lt;BR /&gt;Let vTempVarName = eventvar &amp;amp; peek('Event_id', $(i));&lt;BR /&gt;Let vTempVarValue = peek('Event_Name', $(i));&lt;BR /&gt;&lt;STRONG&gt;Let $(vTempVarName) ='$(vTempVarValue)';&lt;/STRONG&gt;&lt;BR /&gt;Let $(vTempMsgName) = '$(NoteText)';&lt;BR /&gt;Let $(vTempMsgid) = '$(noteID)';&lt;BR /&gt;Next&lt;/P&gt;
&lt;P&gt;The debug data displays the following. and the error is happening in the above bold line.&lt;/P&gt;
&lt;P&gt;Let 52 =''&lt;/P&gt;
&lt;P&gt;Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;logs in 12.10 below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2021-10-25 18:53:47 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;2021-10-25 18:53:48 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;2021-10-25 18:53:48 0176 Let 52 =''&lt;BR /&gt;2021-10-25 18:53:49 0177 Let = ''&lt;BR /&gt;2021-10-25 18:53:50 0178 Let = ''&lt;/P&gt;
&lt;P&gt;Logs in 12.60 below:&lt;/P&gt;
&lt;P&gt;20211025T171408.854+1100 0174 Let vTempVarName = eventvar &amp;amp; peek('Event_id', 1)&lt;BR /&gt;20211025T171408.873+1100 0175 Let vTempVarValue = peek('Event_Name', 1)&lt;BR /&gt;20211025T171408.888+1100 Error: Unexpected token: '52', expected one of: ':', 'IDENTIFIER', 'LITERAL_STRING', 'LITERAL_FIELD'&lt;BR /&gt;20211025T171409.644+1100 0177 Let = ''&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can i expect any solution with this issue?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-body js-comment-edit-hide"&gt;&lt;SPAN class="comment-copy"&gt;An "unexpected token" is likely some illegal character code. Such a code is likely not to show up when you print to console. Therefore, print out the string one character at a time or use a protocol analyzer or debugger etc. to see the actual bytes of the string&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Oct 2021 09:28:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1851759#M1215679</guid>
      <dc:creator>Pitts451</dc:creator>
      <dc:date>2021-10-26T09:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected token error (12.60)</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1853229#M1215753</link>
      <description>&lt;P&gt;I could imagine that your issue is caused from the wrong syntax of peek(). If peek() is used outside from a load you need to specify the table-name as third parameter. Earlier releases just took the last loaded table but that's not really conform to the rules - maybe they are now more strict or you may have further changes between this loop-statement and the load of the event-table.&lt;/P&gt;
&lt;P&gt;This means you need to specify:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let vTempVarName = eventvar &amp;amp; peek('Event_id', $(i), &lt;STRONG&gt;'Event'&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let vTempVarValue = peek('Event_Name', $(i), &lt;STRONG&gt;'Event'&lt;/STRONG&gt;);&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Let $(vTempVarName) ='$(vTempVarValue)';&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 16:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-token-error-12-60/m-p/1853229#M1215753</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2021-10-28T16:45:46Z</dc:date>
    </item>
  </channel>
</rss>

