<?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>article Qlik Application Automation Add Row to table block: The session specified in the request does not exist error in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Add-Row-to-table-block-The-session/ta-p/2069990</link>
    <description>&lt;P&gt;The following error JSON is generated from the&amp;nbsp;&lt;STRONG&gt;Add Row To Table&amp;nbsp;&lt;/STRONG&gt;block in your automation:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;The session specified in the request does not exist or is invalid due to a transient error.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the session specified in the request does not exist.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106922i9024BF23C8890C2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="the session specified in the request does not exist.png" alt="the session specified in the request does not exist.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this article, we will provide you with a test case, along with an Automation JSON, and walk you through how to reproduce the error. We will explain how to troubleshoot it and what the error means.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;The Test Case&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Our test automation opens a session to an Excel file, creates two sheets, and inside each sheet creates a table with data from a loop.&lt;/P&gt;
&lt;P&gt;There will be two loops. Each loop adds 57 rows to the table on each sheet.&lt;/P&gt;
&lt;P&gt;After the first loop is done, we create the second sheet with its table, but this time before adding 57 rows again to the table, we sleep for five minutes before continuing the automation execution.&lt;/P&gt;
&lt;P&gt;When the five&amp;nbsp; minutes pass and we try to add 57 rows using the &lt;STRONG&gt;Add Row To Table&lt;/STRONG&gt; block we get the following error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;The session specified in the request does not exist or is invalid due to a transient error.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Why the use of the sleep block? We are mimicking a pause in the automation where we are not using the workbook session, a pause could be another block that takes a few minutes to process and respond back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Why The Error Happens&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The error occurs after idling and when not using the workbook session inside the Automation. The test using the &lt;STRONG&gt;Sleep&amp;nbsp;&lt;/STRONG&gt;block indicates the idle timeout occurs after five minutes of inactivity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the time we returned to adding rows with the&amp;nbsp;&lt;STRONG&gt;Add Row Block&lt;/STRONG&gt;, the workbook session was no longer active.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another example of this can be seen here:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/68774125/net-core-api-invalid-session-microsoft-graph-api-workbook-session-paused" target="_blank" rel="noopener"&gt;c# - .Net Core Api: Invalid session: Microsoft Graph API Workbook Session Paused - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;How to resolve the error&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;We advise checking for time gaps in the Automation run. This can be best achieved using the &lt;STRONG&gt;Chronological&amp;nbsp;&lt;/STRONG&gt;tab (see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Troubleshooting-Qlik-Application-Automation/ta-p/2016531#toc-hId-814135156" target="_blank" rel="noopener"&gt;Chronologically Tab in Automations Overview Tab&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Review the chronological order and identify gaps between blocks where&amp;nbsp;you do not use the Microsoft Excel blocks for a few minutes, but when you expect to have a workbook session open. Then reduce these gaps so that no more than five minutes pass and the workbook session cannot reach its idle timeout.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cqv cqw c d e f g h i j k l m n o p q r s t cqx cqy w x y z ab ac ae af ag ah ai aj ak"&gt;Alternatively, if you identify a block which takes up to or longer than five minutes to return a response, consider using a&amp;nbsp;&lt;STRONG&gt;close workbook session&amp;nbsp;&lt;/STRONG&gt;block before this block, and follow it up with an&amp;nbsp;&lt;STRONG&gt;open workbook session&lt;/STRONG&gt;&amp;nbsp;block to renew the session after the block that takes time to respond is done executing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cqv cqw c d e f g h i j k l m n o p q r s t cqx cqy w x y z ab ac ae af ag ah ai aj ak"&gt;That way we will have a fresh workbook session to work with.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Related Content&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Troubleshooting-Qlik-Application-Automation/ta-p/2016531" target="_blank" rel="noopener"&gt;Troubleshooting Qlik Application Automation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 15:07:00 GMT</pubDate>
    <dc:creator>Shai_E</dc:creator>
    <dc:date>2023-05-11T15:07:00Z</dc:date>
    <item>
      <title>Qlik Application Automation Add Row to table block: The session specified in the request does not exist error</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Add-Row-to-table-block-The-session/ta-p/2069990</link>
      <description>&lt;P&gt;The following error JSON is generated from the&amp;nbsp;&lt;STRONG&gt;Add Row To Table&amp;nbsp;&lt;/STRONG&gt;block in your automation:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;The session specified in the request does not exist or is invalid due to a transient error.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="the session specified in the request does not exist.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106922i9024BF23C8890C2F/image-size/large?v=v2&amp;amp;px=999" role="button" title="the session specified in the request does not exist.png" alt="the session specified in the request does not exist.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this article, we will provide you with a test case, along with an Automation JSON, and walk you through how to reproduce the error. We will explain how to troubleshoot it and what the error means.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Content&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-TOC indent="15" liststyle="none" maxheadinglevel="3"&gt;&lt;/LI-TOC&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;The Test Case&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Our test automation opens a session to an Excel file, creates two sheets, and inside each sheet creates a table with data from a loop.&lt;/P&gt;
&lt;P&gt;There will be two loops. Each loop adds 57 rows to the table on each sheet.&lt;/P&gt;
&lt;P&gt;After the first loop is done, we create the second sheet with its table, but this time before adding 57 rows again to the table, we sleep for five minutes before continuing the automation execution.&lt;/P&gt;
&lt;P&gt;When the five&amp;nbsp; minutes pass and we try to add 57 rows using the &lt;STRONG&gt;Add Row To Table&lt;/STRONG&gt; block we get the following error:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;The session specified in the request does not exist or is invalid due to a transient error.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Why the use of the sleep block? We are mimicking a pause in the automation where we are not using the workbook session, a pause could be another block that takes a few minutes to process and respond back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Why The Error Happens&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The error occurs after idling and when not using the workbook session inside the Automation. The test using the &lt;STRONG&gt;Sleep&amp;nbsp;&lt;/STRONG&gt;block indicates the idle timeout occurs after five minutes of inactivity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the time we returned to adding rows with the&amp;nbsp;&lt;STRONG&gt;Add Row Block&lt;/STRONG&gt;, the workbook session was no longer active.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another example of this can be seen here:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/68774125/net-core-api-invalid-session-microsoft-graph-api-workbook-session-paused" target="_blank" rel="noopener"&gt;c# - .Net Core Api: Invalid session: Microsoft Graph API Workbook Session Paused - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;How to resolve the error&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;We advise checking for time gaps in the Automation run. This can be best achieved using the &lt;STRONG&gt;Chronological&amp;nbsp;&lt;/STRONG&gt;tab (see &lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Troubleshooting-Qlik-Application-Automation/ta-p/2016531#toc-hId-814135156" target="_blank" rel="noopener"&gt;Chronologically Tab in Automations Overview Tab&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Review the chronological order and identify gaps between blocks where&amp;nbsp;you do not use the Microsoft Excel blocks for a few minutes, but when you expect to have a workbook session open. Then reduce these gaps so that no more than five minutes pass and the workbook session cannot reach its idle timeout.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cqv cqw c d e f g h i j k l m n o p q r s t cqx cqy w x y z ab ac ae af ag ah ai aj ak"&gt;Alternatively, if you identify a block which takes up to or longer than five minutes to return a response, consider using a&amp;nbsp;&lt;STRONG&gt;close workbook session&amp;nbsp;&lt;/STRONG&gt;block before this block, and follow it up with an&amp;nbsp;&lt;STRONG&gt;open workbook session&lt;/STRONG&gt;&amp;nbsp;block to renew the session after the block that takes time to respond is done executing.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="ui-provider cqv cqw c d e f g h i j k l m n o p q r s t cqx cqy w x y z ab ac ae af ag ah ai aj ak"&gt;That way we will have a fresh workbook session to work with.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-style: italic;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Related Content&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;A href="https://community.qlik.com/t5/Official-Support-Articles/Troubleshooting-Qlik-Application-Automation/ta-p/2016531" target="_blank" rel="noopener"&gt;Troubleshooting Qlik Application Automation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 15:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Application-Automation-Add-Row-to-table-block-The-session/ta-p/2069990</guid>
      <dc:creator>Shai_E</dc:creator>
      <dc:date>2023-05-11T15:07:00Z</dc:date>
    </item>
  </channel>
</rss>

