<?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: Inconsistent Set Load Script to app in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1886056#M352</link>
    <description>&lt;P&gt;Thank you, that's a good suggestion.&lt;BR /&gt;I'll see if we can add this info to all blocks using sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 13:24:53 GMT</pubDate>
    <dc:creator>Emile_Koslowski</dc:creator>
    <dc:date>2022-01-27T13:24:53Z</dc:date>
    <item>
      <title>Inconsistent Set Load Script to app</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1885953#M349</link>
      <description>&lt;P&gt;I'm using Automations to create a simple Flow.&lt;/P&gt;
&lt;P&gt;start automation --&amp;gt; set Load Script --&amp;gt; end automations&lt;/P&gt;
&lt;P&gt;The issue i'm running into is that the Set Load script is very inconsistant.&lt;/P&gt;
&lt;P&gt;I've created an app (called Test1) 30 minutes before I created this automation. The set Load script in the automations uses the example Load script. See below.&lt;/P&gt;
&lt;P&gt;start automation --&amp;gt; set Load Script&amp;nbsp; (to app Test1) --&amp;gt; end automations&lt;/P&gt;
&lt;P&gt;After loading the automations this script is no were to be seen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in the automations I changed the app where the automations need to places this load script. the app I selected (called Testapp) was an app created day's ago. Now I run the automation and first try the script is loaded into the app (Testapp) no problem.&lt;/P&gt;
&lt;P&gt;after I deleted the script sections the automations created in the Testapp I run the automations again.&lt;/P&gt;
&lt;P&gt;Now in the Testapp aswell no script to be seen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is why is the automation's so inconsistant, it looks like that the automations sometimes works and sometimes it doesn't. I've looked at the Error in the automations for the run's I described above, there were no errors in those runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;///$tab Section 1
Characters:
Load Chr(RecNo()+Ord('A')-1) as Alpha, RecNo() as Num autogenerate 26;
 
ASCII:
Load 
 if(RecNo()&amp;gt;=65 and RecNo()&amp;lt;=90,RecNo()-64) as Num,
 Chr(RecNo()) as AsciiAlpha, 
 RecNo() as AsciiNum
autogenerate 255
 Where (RecNo()&amp;gt;=32 and RecNo()&amp;lt;=126) or RecNo()&amp;gt;=160 ;
 
Transactions:
Load
 TransLineID, 
 TransID,
 mod(TransID,26)+1 as Num,
 Pick(Ceil(3*Rand1),'A','B','C') as Dim1,
 Pick(Ceil(6*Rand1),'a','b','c','d','e','f') as Dim2,
 Pick(Ceil(3*Rand()),'X','Y','Z') as Dim3,
 Round(1000*Rand()*Rand()*Rand1) as Expression1,
 Round(  10*Rand()*Rand()*Rand1) as Expression2,
 Round(Rand()*Rand1,0.00001) as Expression3;
Load 
 Rand() as Rand1,
 IterNo() as TransLineID,
 RecNo() as TransID
Autogenerate 1000
 While Rand()&amp;lt;=0.5 or IterNo()=1;

 Comment Field Dim1 With "This is a field comment";
///$tab Section 2
Table1:
LOAD * INLINE
[A, B
1, aa
2,cc
3,ee];

Table2:
LOAD * INLINE
[C, D
5, xx
4,yy
6,zz];&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 10:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1885953#M349</guid>
      <dc:creator>MartW</dc:creator>
      <dc:date>2022-01-27T10:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Set Load Script to app</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1885986#M350</link>
      <description>&lt;P&gt;Hi MartW,&lt;/P&gt;
&lt;P&gt;In automations, setting the load script happens through a session.&amp;nbsp;&lt;BR /&gt;And the automations' session is different than the session in the UI. That's why certain changes made in automations are not immediately available in the UI. It can take up to 40 minutes for these sessions to sync.&lt;/P&gt;
&lt;P&gt;But the updated load script should be available in that automation, if you execute a Get Load Script block, it should return the updated script.&lt;/P&gt;
&lt;P&gt;If you want to reload the app with the new load script, I suggest you do that through the automation. The reload will be handled by the Reloads API which exists outside the automation's session. To make the updated load script available for the Reloads API, you should execute a Save App block immediately after the Set Load Script block.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So then your automation would look like this:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set Load Script&lt;/LI&gt;
&lt;LI&gt;Save App&lt;/LI&gt;
&lt;LI&gt;Do Reload&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;We are looking into solutions to the session synchronization delay.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;BR /&gt;Emile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 11:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1885986#M350</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2022-01-27T11:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Set Load Script to app</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1886009#M351</link>
      <description>&lt;P&gt;Thanks for the answer. but would it be an idea to put somewere in automation a warning as it could be a delay of 40 minutes. Because i've spend 3+ hours trying to figure out why it was so inconsistant&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 11:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1886009#M351</guid>
      <dc:creator>MartW</dc:creator>
      <dc:date>2022-01-27T11:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Set Load Script to app</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1886056#M352</link>
      <description>&lt;P&gt;Thank you, that's a good suggestion.&lt;BR /&gt;I'll see if we can add this info to all blocks using sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:24:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1886056#M352</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2022-01-27T13:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent Set Load Script to app</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1889067#M361</link>
      <description>&lt;P&gt;Hi MartW,&lt;/P&gt;
&lt;P&gt;We've written an article on session delays in automations:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Knowledge/Automation-session-delays/ta-p/1886161" target="_blank"&gt;https://community.qlik.com/t5/Knowledge/Automation-session-delays/ta-p/1886161&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We will be adding this to the relevant blocks' descriptions.&lt;/P&gt;
&lt;P&gt;Emile&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 08:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Inconsistent-Set-Load-Script-to-app/m-p/1889067#M361</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2022-02-04T08:59:56Z</dc:date>
    </item>
  </channel>
</rss>

