<?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: Comparing previous value to newly updated values in Automations - not working consistently in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1878191#M276</link>
    <description>&lt;P&gt;On the Chronological view, I can see that the block for Get Measure Value doesn't work as expected. It just returns some ID instead of the value. Get Measure Value 3 (and the original 4) do work though... Hmmm....&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_0-1641506045896.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69721iBD24356107950179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_0-1641506045896.png" alt="joe_warbington_0-1641506045896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_2-1641506070618.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69723i2CE7EAE0B1CA5980/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_2-1641506070618.png" alt="joe_warbington_2-1641506070618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jan 2022 21:54:36 GMT</pubDate>
    <dc:creator>joe_warbington</dc:creator>
    <dc:date>2022-01-06T21:54:36Z</dc:date>
    <item>
      <title>Comparing previous value to newly updated values in Automations - not working consistently</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1878186#M275</link>
      <description>&lt;P&gt;I have an automation that I've been adding to that basically looks at a Measure value prior to reload, then does a reload, then compares that original value to the new value, and if the value has grown it will send a message to Slack.&lt;BR /&gt;&lt;BR /&gt;I haven't been able to get it to compare successfully, but my logic seems correct.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The original (pre-Reload) value is always available in the output, but the after reload value isn't read fully and sometimes it errors out. What do I need to do? Add in a sleep block before/after reading the value again?&lt;BR /&gt;&lt;BR /&gt;Here's the layout:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_0-1641505686828.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69718i9C4DBBB71A8BE72A/image-size/large?v=v2&amp;amp;px=999" role="button" title="joe_warbington_0-1641505686828.png" alt="joe_warbington_0-1641505686828.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The condition is:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_1-1641505730328.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69719i787CF533064A60C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_1-1641505730328.png" alt="joe_warbington_1-1641505730328.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The history usually looks like this with the argument 2 supposed to reflect the after reloaded value:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_2-1641505775051.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69720iD4D16D72C1DA3EEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_2-1641505775051.png" alt="joe_warbington_2-1641505775051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes it errors out with "error: Client read timeout".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Though most times the condition is not met because the new value isn't retrieved. It says it's NULL but that is impossible as it's a growing value. Hints on how to troubleshoot this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1878186#M275</guid>
      <dc:creator>joe_warbington</dc:creator>
      <dc:date>2022-01-06T21:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing previous value to newly updated values in Automations - not working consistently</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1878191#M276</link>
      <description>&lt;P&gt;On the Chronological view, I can see that the block for Get Measure Value doesn't work as expected. It just returns some ID instead of the value. Get Measure Value 3 (and the original 4) do work though... Hmmm....&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_0-1641506045896.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69721iBD24356107950179/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_0-1641506045896.png" alt="joe_warbington_0-1641506045896.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joe_warbington_2-1641506070618.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/69723i2CE7EAE0B1CA5980/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joe_warbington_2-1641506070618.png" alt="joe_warbington_2-1641506070618.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 21:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1878191#M276</guid>
      <dc:creator>joe_warbington</dc:creator>
      <dc:date>2022-01-06T21:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing previous value to newly updated values in Automations - not working consistently</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1879982#M296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/41172"&gt;@joe_warbington&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not able to pinpoint the issue here&lt;/P&gt;
&lt;P&gt;In order to investigate further,&amp;nbsp;&lt;SPAN&gt;Could you please share the JSON export of your automation (right-click in the editor - download workspace)?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Afeefa TK&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 10:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1879982#M296</guid>
      <dc:creator>AfeefaTk</dc:creator>
      <dc:date>2022-01-12T10:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing previous value to newly updated values in Automations - not working consistently</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1880277#M297</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;First some background info on the blocks:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the Get Measure Value block interacts with your app through an engine session&lt;/LI&gt;
&lt;LI&gt;the Do Reload and Get App Information blocks are made through a REST API&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Performing a reload will trigger a data refresh in all active sessions. I believe that the sessions can not communicate with the engine while data is refreshed.&lt;/P&gt;
&lt;P&gt;The following steps explain how the session is handled in this automation:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;The first Get Measure Value block will start a session and retrieve the measure value. This session stays open for the duration of the automation.&lt;/LI&gt;
&lt;LI&gt;The Do Reload block will trigger a data refresh in all active sessions, including the current session in the automation.&lt;/LI&gt;
&lt;LI&gt;After the reload it takes some time before the session is available again.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Could you verify the above by adding a Sleep block after the Do Reload block? You might need to adjust the time a bit to get it right.&lt;/P&gt;
&lt;P&gt;Also, those Get Measure Value blocks don't return a random ID, they return nothing and have no output. What you see under the blocks preview in the chronological view for those blocks is the app id. I'll see if we can make a change to this Preview field to show nothing when there's no output.&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Emile&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 16:22:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Comparing-previous-value-to-newly-updated-values-in-Automations/m-p/1880277#M297</guid>
      <dc:creator>Emile_Koslowski</dc:creator>
      <dc:date>2022-01-12T16:22:16Z</dc:date>
    </item>
  </channel>
</rss>

