<?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 Error From Engine on Variable Set through API in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33528#M515</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 have a mashup which is constantly throwing error messages to the browser console. I have isolated the problem in a very simple mashup, which only sets a variable value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;require( ["js/qlik"], function ( qlik ) {&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var app = qlik.openApp('MayApp.qvf', config);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app&lt;/SPAN&gt;.getObject('QV01','uGgnDc');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;// THIS SENTENCE THROWS THE ERROR:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app&lt;/SPAN&gt;.variable.setStringValue('var1', 'NewValue');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;} );&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sentence works, because the variable 'var1' changes its value correctly. Even so, this is the error I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193559_Error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the same error both in Qlik Sense Server (November 2017 Release) and Qlik Sense Desktop (February 2017 Release).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the issue here? Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 17:15:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-15T17:15:12Z</dc:date>
    <item>
      <title>Error From Engine on Variable Set through API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33528#M515</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 have a mashup which is constantly throwing error messages to the browser console. I have isolated the problem in a very simple mashup, which only sets a variable value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;require( ["js/qlik"], function ( qlik ) {&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var app = qlik.openApp('MayApp.qvf', config);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app&lt;/SPAN&gt;.getObject('QV01','uGgnDc');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;// THIS SENTENCE THROWS THE ERROR:&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; app&lt;/SPAN&gt;.variable.setStringValue('var1', 'NewValue');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;&lt;EM&gt;} );&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sentence works, because the variable 'var1' changes its value correctly. Even so, this is the error I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/193559_Error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting the same error both in Qlik Sense Server (November 2017 Release) and Qlik Sense Desktop (February 2017 Release).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the issue here? Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 17:15:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33528#M515</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-15T17:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error From Engine on Variable Set through API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33529#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That's normal. Your code will try to get the object and before that's ready sets the variable value. Since that affects the object, engine will abort the getObject request. The client should handle this and resend the command, so it will look Ok to the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this change the order of the calls and set the variable before you do the getObject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erik Wetterberg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark as helpful and/or correct if you are helped by this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 06:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33529#M516</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2018-02-16T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error From Engine on Variable Set through API</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33530#M517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Erik. I know understand this behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 07:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-From-Engine-on-Variable-Set-through-API/m-p/33530#M517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-16T07:52:19Z</dc:date>
    </item>
  </channel>
</rss>

