<?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: Calculating Bot Idle time in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75433#M28038</link>
    <description>Yeah a null end date means pending, debugging or still running. If you're certain no session will run past midnight or for more than 24 hours, then the '1440-session minutes' in combination with 'status = complete or terminated' should do the job.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 17 Jun 2022 17:07:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2022-06-17T17:07:00Z</dc:date>
    <item>
      <title>Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75427#M28032</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;is there a way to generate bot idle time report for a week/month in Blue prism.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Athiban&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Athiban Mathi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2022 05:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75427#M28032</guid>
      <dc:creator>Athiban_Mathi</dc:creator>
      <dc:date>2022-05-02T05:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75428#M28033</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="c48ba158-9651-4edb-84fd-bf1bc8f3303b" data-tag-text="@Athiban Mathi" href="https://community.blueprism.com/network/profile?UserKey=c48ba158-9651-4edb-84fd-bf1bc8f3303b" data-itemmentionkey="4d406584-373f-4be7-9b1e-b066b434fe78"&gt;@Athiban Mathi&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know if exists a way to get the info directly.&lt;BR /&gt;&lt;BR /&gt;But, you can use the tabla "BPASession" from the BluePrism's database. Here you have the start ​time (startdatetime) and the end time (enddatetime), and the Resources id (runningresourceid)&lt;BR /&gt;&lt;BR /&gt;You can create a query&amp;nbsp; to extract all the time that is idle, something like this:&lt;BR /&gt;&lt;BR /&gt;SELECT A.name&lt;BR /&gt;, A.ExecuteDate&lt;BR /&gt;, 1440 - SUM(diff)&lt;BR /&gt;FROM (&lt;BR /&gt;SELECT RES.name&lt;BR /&gt;, CAST(startdatetime AS date) AS ExecuteDate&lt;BR /&gt;, DATEDIFF(MINUTE, startdatetime, ISNULL(enddatetime, GETDATE())) as Diff&lt;BR /&gt;FROM BPASession SES&lt;BR /&gt;INNER JOIN BPAResource RES ON SES.runningresourceid = RES.resourceid&lt;BR /&gt;WHERE RES.name = 'CA00WVPRSW01'&lt;BR /&gt;) AS A&lt;BR /&gt;GROUP BY name, ExecuteDate&lt;BR /&gt;&lt;BR /&gt;This gives you the idle time in minutes. Review it and let us know if this works for you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you, and if this solves your question, remember mark as the best answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the community, bye &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2022 08:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75428#M28033</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-05-02T08:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75429#M28034</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="2a225d7d-aacd-4239-ae01-1476955808ee" data-tag-text="@Athiban Mahamathi" href="https://community.blueprism.com/network/profile?UserKey=2a225d7d-aacd-4239-ae01-1476955808ee" data-itemmentionkey="8629ede3-12df-4b0e-bbea-5814e6d38f0d"&gt;@Athiban Mahamathi&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You can calculate the bot's idle time based on the scheduler. Just verify how much is the utilization of the bot during the whole day/week either by pulling out the report from the control room or it can also be fetched from the backend database, provided proper accesses are available for accessing the database.​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manpreet Kaur&lt;BR /&gt;Manager&lt;BR /&gt;Deloitte&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2022 08:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75429#M28034</guid>
      <dc:creator>ManpreetKaur1</dc:creator>
      <dc:date>2022-05-02T08:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75430#M28035</link>
      <description>what does it mean when the results on this are in negative numbers? for example i have machine 1 saying&lt;BR /&gt;&lt;BR /&gt;bot1 &lt;SPAN&gt;2021-12-21&lt;/SPAN&gt;&lt;SPAN class="c-mrkdwn__tab"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;1272&lt;BR /&gt;and bot 2 saying&amp;nbsp;&lt;BR /&gt;bot2 2021-12-22&lt;SPAN class="c-mrkdwn__tab"&gt; &lt;/SPAN&gt;-10630&lt;BR /&gt;&lt;BR /&gt;these coincidentally are also only happening in debug mode, are they by any chance something running in debug thats running overnight or something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dexter Whelan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2022 13:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75430#M28035</guid>
      <dc:creator>DexterWhelan2</dc:creator>
      <dc:date>2022-06-16T13:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75431#M28036</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="dc0fd72f-a3ae-4990-b8a7-8d75b8a11cd1" data-tag-text="@Dexter Whelan" href="https://community.blueprism.com/network/profile?UserKey=dc0fd72f-a3ae-4990-b8a7-8d75b8a11cd1" data-itemmentionkey="018c3efa-5bda-400d-93e1-1ec726a2e262"&gt;@Dexter Whelan&lt;/A&gt;&amp;nbsp; - your negative numbers are a result of the &lt;SPAN&gt;ISNULL(enddatetime, GETDATE()) part of Pablo's query, which is saying 'if the session has no end, substitute the current time'. But if the session start was more than 1 day ago, or it's an old pending session, then the '1440 minus session minutes'&lt;/SPAN&gt;​ calculation will yield a negative number.&lt;BR /&gt;&lt;BR /&gt;The principle of the query is correct, but the 'end date substitution' bit needs to be improved. Adding a 'where session is not pending' or 'where session is complete' clause will probably do the trick.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75431#M28036</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-06-17T08:42:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75432#M28037</link>
      <description>ah John, you are absolutely correct. There are sessions that are getting started(or something i'm not sure what the entry here is) so if something doesnt have an entry that means the session never started I guess or rather never ....ended? Possibly just a defect of debug states and they shouldnt be included in the listing really?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dexter Whelan&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jun 2022 10:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75432#M28037</guid>
      <dc:creator>DexterWhelan2</dc:creator>
      <dc:date>2022-06-17T10:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75433#M28038</link>
      <description>Yeah a null end date means pending, debugging or still running. If you're certain no session will run past midnight or for more than 24 hours, then the '1440-session minutes' in combination with 'status = complete or terminated' should do the job.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jun 2022 17:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75433#M28038</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-06-17T17:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75434#M28039</link>
      <description>&lt;P&gt;Hi, Could you please tell me how to &lt;SPAN&gt;fetch the data from the backend database. I need to know each machines run time and ideal time for the day.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dinesh Kumar&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 25 Feb 2024 05:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75434#M28039</guid>
      <dc:creator>Thavasidinesh</dc:creator>
      <dc:date>2024-02-25T05:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Calculating Bot Idle time</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75435#M28040</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Check this guide (check the integrity of requests to avoid overload) &lt;A href="https://youtu.be/UqbJbsw7l-o" target="test_blank"&gt;https://youtu.be/UqbJbsw7l-o&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Helper thread in case of errors:&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=511&amp;amp;MessageKey=6ec28a4d-5fa4-4f4b-8834-8433f6edcc4d&amp;amp;CommunityKey=318951ad-ae66-4c81-9cf3-5df9bbc9c455&amp;amp;tab=digestviewer&amp;amp;ReturnUrl=%2fcommunity-discussions%2fallrecentposts&amp;amp;SuccessMsg=Thank%20you%20for%20submitting%20your%20message.#bm6ec28a4d-5fa4-4f4b-8834-8433f6edcc4d"&gt;Thread 01 - Post Fórum&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=09f5634f-bbd3-49ca-98bd-52610a813744&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01"&gt;&amp;nbsp;Thread 02 - Post Fórum&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;Regards,&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leonardo Soares&lt;BR /&gt;RPA Developer Tech Leader&lt;BR /&gt;América/Brazil&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 02:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Calculating-Bot-Idle-time/m-p/75435#M28040</guid>
      <dc:creator>LeonardoSQueiroz</dc:creator>
      <dc:date>2024-02-26T02:47:00Z</dc:date>
    </item>
  </channel>
</rss>

