<?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: Scheduled Dashboards and Session Variables in Dashboards &amp; Analytics Discussions</title>
    <link>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2331#M166</link>
    <description>&lt;P&gt;Yes, some of these workarounds are possible, but let me connect with the support team as we do have a parameter to force re-evaluating time-based variables, that should be officially released soon.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 12:33:55 GMT</pubDate>
    <dc:creator>Prince</dc:creator>
    <dc:date>2022-08-04T12:33:55Z</dc:date>
    <item>
      <title>Scheduled Dashboards and Session Variables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2293#M163</link>
      <description>&lt;P&gt;I have a dashboard scheduled to run/send a PDF every morning at 6:00 a.m.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;The dashboard has some date logic built in which relies on session variables.&lt;/P&gt;&lt;P&gt;An interesting issue is coming up where the mailed PDF is showing data as of two days ago, not yesterday ( $SV_Yesterday_Day_Number_Of_Week&amp;nbsp; ) but when I run it interactively it runs fine.&lt;/P&gt;&lt;P&gt;Initial theory is that the session variable is not being populated when the dashboard is scheduled to run, but remains cached from the prior day's interactive use.&lt;/P&gt;&lt;P&gt;1) Sound plausible?&lt;/P&gt;&lt;P&gt;2) Can I force the refresh/renewal of a session variable(s) ( or a global variable ) so that dashboards running on a schedule get the most up to date values?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can work around this for now by not using session variables - but this behavior has me wondering about using session variables in conjunction with schedules and if what I'm seeing is "expected behavior"&amp;nbsp; ( quotes because it's not the behavior *I* expected! ).&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run a DB process overnight to update a lookup table for instance, will my dashboard reflect that?&amp;nbsp; Right now the answer seems to be "if you run it in Incorta" but maybe not if you schedule it.&lt;/P&gt;&lt;P&gt;A support ticket is next if Community wants to race&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 12:13:31 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2293#M163</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2022-08-02T12:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled Dashboards and Session Variables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2313#M164</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.incorta.com/t5/user/viewprofilepage/user-id/24"&gt;@RADSr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Currently the session/global variables are being cached, unlike system time-based variables. Those variables are refreshed either with new login session or when a column used is refreshed.&lt;/P&gt;&lt;P&gt;So the recommendation is to use the system variable in the dashboard directly, if possible. Unless you are already using a column in the variable definition, and that column is on a schema with scheduled load job.&lt;/P&gt;&lt;P&gt;In the meanwhile, it is already on the radar and will be addressed very soon to exclude any variable that depends on a time-based system variable.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:17:34 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2313#M164</guid>
      <dc:creator>Prince</dc:creator>
      <dc:date>2022-08-03T14:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled Dashboards and Session Variables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2318#M165</link>
      <description>&lt;P&gt;Thank you for the response!&lt;/P&gt;&lt;P&gt;Restating just to make sure I have the explanation correct for the customer:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Session variable values are populated upon sign-on and the values cached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The cache remains intact until the next sign-on&lt;/P&gt;&lt;P&gt;3) Schedules run under the user's account do not require a sign-on and therefore use the cached values instead of repopulating them.&amp;nbsp; &amp;nbsp;Manually running the report *does* require a sign-on and so the values are refreshed and the newly refreshed values used from that point forward.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that's the case, would cycling the analyzer service clear the cache and force a re-query of the session variable when the scheduler runs?&amp;nbsp; &amp;nbsp;And, follow-up, I know I can schedule the stop-start on-prem, but is it possible w/ a cloud account?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively - and I ask from a position of near-100% ignorance of web forms - is it possible to automate the login action from a .bat file or something similar?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:37:06 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2318#M165</guid>
      <dc:creator>RADSr</dc:creator>
      <dc:date>2022-08-03T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled Dashboards and Session Variables</title>
      <link>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2331#M166</link>
      <description>&lt;P&gt;Yes, some of these workarounds are possible, but let me connect with the support team as we do have a parameter to force re-evaluating time-based variables, that should be officially released soon.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:33:55 GMT</pubDate>
      <guid>https://community.incorta.com/t5/dashboards-analytics-discussions/scheduled-dashboards-and-session-variables/m-p/2331#M166</guid>
      <dc:creator>Prince</dc:creator>
      <dc:date>2022-08-04T12:33:55Z</dc:date>
    </item>
  </channel>
</rss>

