<?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 Code works in 12.10 but not in 12.40 after upgrade in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1614059#M445331</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;We recently upgraded from 12.10 to 12.40 version of QlikView.&lt;/P&gt;&lt;P&gt;Below is the code that works fine in 12.10 but not in 12.40. It throws unknown statement error.&lt;/P&gt;&lt;P&gt;Seeking Qlik Support help but not much help. Your help here is highly appreciated.&lt;/P&gt;&lt;P&gt;Attached are the error messages that I receive and the actual qvc.qvs file that I use while generating the QVD's using the qvdGenerator.qvw. This generator uses an excel file to get the list of tables names and the load code.&lt;/P&gt;&lt;P&gt;//==========================================================//==========================================================// Execute the SQL Select.//==========================================================&lt;/P&gt;&lt;P&gt;[$(Qvc.Loader.v.Tablename)]: // vTablename is set by the IncrementalSetup routine.&lt;/P&gt;&lt;P&gt;Rem; // Fix syntax error from table label with variable // If LOAD Statement provided, use it&lt;/P&gt;&lt;P&gt;IF len('$(_qvctemp.den.loadStatement)')&amp;gt;0 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; $(_qvctemp.den.loadStatement);&lt;/P&gt;&lt;P&gt;ELSE // No LOAD Statement, build a SQL SELECT&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF $(Qvc.Loader.v.CreateExtractTimestampField) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOAD *, now(1) as ExtractTimestamp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SQL SELECT $(_qvctemp.den.columns) FROM $(_qvctemp.den.table) WHERE $(Qvc.Loader.v.IncrementalExpression) //incrementalExpression is set up the Qvc.IncrementalSetup routine. ;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 20:14:42 GMT</pubDate>
    <dc:creator>shyamcharan</dc:creator>
    <dc:date>2024-11-16T20:14:42Z</dc:date>
    <item>
      <title>Code works in 12.10 but not in 12.40 after upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1614059#M445331</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;We recently upgraded from 12.10 to 12.40 version of QlikView.&lt;/P&gt;&lt;P&gt;Below is the code that works fine in 12.10 but not in 12.40. It throws unknown statement error.&lt;/P&gt;&lt;P&gt;Seeking Qlik Support help but not much help. Your help here is highly appreciated.&lt;/P&gt;&lt;P&gt;Attached are the error messages that I receive and the actual qvc.qvs file that I use while generating the QVD's using the qvdGenerator.qvw. This generator uses an excel file to get the list of tables names and the load code.&lt;/P&gt;&lt;P&gt;//==========================================================//==========================================================// Execute the SQL Select.//==========================================================&lt;/P&gt;&lt;P&gt;[$(Qvc.Loader.v.Tablename)]: // vTablename is set by the IncrementalSetup routine.&lt;/P&gt;&lt;P&gt;Rem; // Fix syntax error from table label with variable // If LOAD Statement provided, use it&lt;/P&gt;&lt;P&gt;IF len('$(_qvctemp.den.loadStatement)')&amp;gt;0 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; $(_qvctemp.den.loadStatement);&lt;/P&gt;&lt;P&gt;ELSE // No LOAD Statement, build a SQL SELECT&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF $(Qvc.Loader.v.CreateExtractTimestampField) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LOAD *, now(1) as ExtractTimestamp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SQL SELECT $(_qvctemp.den.columns) FROM $(_qvctemp.den.table) WHERE $(Qvc.Loader.v.IncrementalExpression) //incrementalExpression is set up the Qvc.IncrementalSetup routine. ;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1614059#M445331</guid>
      <dc:creator>shyamcharan</dc:creator>
      <dc:date>2024-11-16T20:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in 12.10 but not in 12.40 after upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1615570#M445405</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/45081"&gt;@shyamcharan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some improvements have been made in newer versions, it seems that the syntax validates what is placed immediately after a tag , please refer to the following documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/table-names.htm" target="_self"&gt;Table names&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So because you have a REM and an IF statements before any data that could be stored into the tabla the error shows,&lt;/P&gt;
&lt;P&gt;So the script will work if you place the table alias immediately before a Load statement or a variable&lt;/P&gt;
&lt;P&gt;The following scripts will work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SET Qvc.Loader.v.Tablename = 'Test';&lt;/P&gt;
&lt;P&gt;set script ='LOAD *, now(1) as ExtractTimestamp';&lt;/P&gt;
&lt;P&gt;[$Qvc.Loader.v.Tablename)]:&lt;BR /&gt;$(script);&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SET Qvc.Loader.v.Tablename = 'Test';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;IF len('$(_qvctemp.den.loadStatement)')&amp;gt;0 THEN&lt;BR /&gt;[$Qvc.Loader.v.Tablename)]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;A, B&lt;BR /&gt;Q, 345&lt;BR /&gt;S, 45654&lt;BR /&gt;D, 2345&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;ELSE // No LOAD Statement, build a SQL SELECT &lt;BR /&gt;[$Qvc.Loader.v.Tablename)]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;A, B&lt;BR /&gt;Q, 345&lt;BR /&gt;S, 45654&lt;BR /&gt;D, 2345&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;Note: if this response helps to resolve the issue, it will be appreciated if you could mark it as Solved.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;We encourage you to visit our Knowledge Base &lt;A href="https://qliksupport.force.com/QS_CoveoSearch" target="_blank"&gt;https://qliksupport.force.com/QS_CoveoSearch&lt;/A&gt; when trying to find a solution related and not limited to: errors, product malfunctioning, feature requests, product defects. You can also visit our Qlik Help portal &lt;A href="https://help.qlik.com/" target="_blank"&gt;https://help.qlik.com/ &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 17:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1615570#M445405</guid>
      <dc:creator>NadiaB</dc:creator>
      <dc:date>2019-08-22T17:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code works in 12.10 but not in 12.40 after upgrade</title>
      <link>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1619633#M445667</link>
      <description>&lt;P&gt;Shyam, did Nadia's post help you get things sorted?&amp;nbsp; If so, please consider using the Accept as Solution button on her post to give her credit for the help.&amp;nbsp; If you did something else, it would be great if you can post what you did in case someone else runs into the same issue...&lt;/P&gt;
&lt;P&gt;Nadia hit on what I expected was going on, generally these issues are not really in QlikView per se, but in the Connector/Driver etc., hopefully Nadia's comments helped you find the root cause and you were able to adjust and get things working.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 14:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Code-works-in-12-10-but-not-in-12-40-after-upgrade/m-p/1619633#M445667</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-09-03T14:08:54Z</dc:date>
    </item>
  </channel>
</rss>

