<?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: Partial Reload failed in a script with variables in Management &amp; Governance</title>
    <link>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019209#M5445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to suggest without seeing the full script (specifically the part where your variables are defined), but try to add single quotes to your variables in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(VariableDesde)&amp;nbsp; --&amp;gt; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(VariableDesde)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And what kind of error you are receiving during the load?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vlad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 15:55:34 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2016-04-27T15:55:34Z</dc:date>
    <item>
      <title>Partial Reload failed in a script with variables</title>
      <link>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019208#M5444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I 'm trying to make a partial reload of&amp;nbsp; the following script:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt; PRODUCCION_TIMELINE:&lt;/P&gt;
&lt;P&gt; Replace LOAD &lt;/P&gt;
&lt;P&gt; codigoOP_PO as codigoOP_POPL,&lt;/P&gt;
&lt;P&gt; maquina_PO as maquina_PO_POPL,&lt;/P&gt;
&lt;P&gt; fechaInicioReal_PO as fechaInicioReal,&lt;/P&gt;
&lt;P&gt; fechaFinReal_PO as fechaFinReal,&lt;/P&gt;
&lt;P&gt; item_PO as item_PO_POPL,&lt;/P&gt;
&lt;P&gt; codigoOP_PO &amp;amp;'-'&amp;amp; item_PO as CodigoItem,&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and fechaFinReal_PO&amp;lt;$(VariableHasta),$(VariableDesde),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;gt;fechaFinReal_PO,date(fechaInicioReal_PO,'YYYY/MM/DD hh:mm:ss'),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;gt;fechaInicioReal_PO,date(fechaInicioReal_PO,'YYYY/MM/DD hh:mm:ss'),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO,$(VariableDesde),'0')))) as fechaInicioVirtual,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and fechaFinReal_PO&amp;lt;$(VariableHasta),date(fechaFinReal_PO,'YYYY/MM/DD hh:mm:ss'),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;gt;fechaFinReal_PO,date(fechaFinReal_PO,'YYYY/MM/DD hh:mm:ss'),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;gt;fechaInicioReal_PO,$(VariableHasta),&lt;/P&gt;
&lt;P&gt; if($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO,$(VariableHasta),'0')))) as fechaFinVirtual&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt; resident PRODUCCION&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt; where (($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;gt;fechaFinReal_PO) OR&lt;/P&gt;
&lt;P&gt; ($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;gt;fechaFinReal_PO) OR&lt;/P&gt;
&lt;P&gt; ($(VariableDesde)&amp;lt;fechaInicioReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;gt;fechaInicioReal_PO) OR&lt;/P&gt;
&lt;P&gt; ($(VariableDesde)&amp;gt;fechaInicioReal_PO and $(VariableDesde)&amp;lt;fechaFinReal_PO and $(VariableHasta)&amp;lt;fechaFinReal_PO));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;where ' VariableDesde ' and VariableHasta 'are two date&amp;nbsp; variables selected in the front end .&lt;BR /&gt;The idea is&amp;nbsp; create a new table from ' PRODUCCION&amp;nbsp; ' filtering between two dates, but can not get it to work.&lt;BR /&gt;I tried it with ' REPLACE ' ' ADD ' ' REPLACE ONLY ' ' ADD ONLY ' but still does not work .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 08:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019208#M5444</guid>
      <dc:creator />
      <dc:date>2016-04-26T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload failed in a script with variables</title>
      <link>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019209#M5445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to suggest without seeing the full script (specifically the part where your variables are defined), but try to add single quotes to your variables in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(VariableDesde)&amp;nbsp; --&amp;gt; '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(VariableDesde)'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;And what kind of error you are receiving during the load?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Vlad&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 15:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019209#M5445</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2016-04-27T15:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Partial Reload failed in a script with variables</title>
      <link>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019210#M5446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vlad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;The variables are created and assigned a value from an extension ' Calendar Date Picker ' as follows :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;qlik.currApp().variable.create('VariableDesde');&lt;/P&gt;
&lt;P&gt;qlik.currApp(t).variable.setContent( 'VariableDesde' , valFromAux);&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;To perform partial load I use an extension ' Qlik -Sense -Reload - Button' , the only error I receive is ' Partial Reload Failed' .&lt;BR /&gt;I looked at the logs and&amp;nbsp; I get the following error: ' General Script Error '&lt;BR /&gt;&lt;BR /&gt;With the total reload it works.&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 09:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Management-Governance/Partial-Reload-failed-in-a-script-with-variables/m-p/1019210#M5446</guid>
      <dc:creator />
      <dc:date>2016-04-28T09:09:55Z</dc:date>
    </item>
  </channel>
</rss>

