<?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: Database Errors deleting pending session via ResourcePC command in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92389#M42188</link>
    <description>Hi Nobuhiro,&amp;nbsp;&lt;BR /&gt;it is possible not to delete the pending item in the DB but send a http request to the server in order to start or stop the pending item. I don't want to use the BP solution as far we only have on resource and therefore prefer to handle it via scripts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;S D&lt;BR /&gt;consultant&lt;BR /&gt;NoName&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Jun 2021 15:30:00 GMT</pubDate>
    <dc:creator>SD</dc:creator>
    <dc:date>2021-06-18T15:30:00Z</dc:date>
    <item>
      <title>Database Errors deleting pending session via ResourcePC command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92387#M42186</link>
      <description>BP 6.7.2&lt;BR /&gt;I am working on a program to automatically detect and delete pending sessions. The steps:
&lt;UL&gt;
&lt;LI&gt;Get list of pending session IDs&lt;/LI&gt;
&lt;LI&gt;automatec /getauthtoken /sso&lt;/LI&gt;
&lt;LI&gt;via HTTP or Telnet:&lt;BR /&gt;internalauth (token)&lt;BR /&gt;delete (sessionid)&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;The response:&lt;BR /&gt;&lt;STRONG&gt;AUTH ACCEPTED&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR:Could not update database following deletion - Value can not be null, or have zero length&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Parameter name: TokenValue&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Okay, perhaps I need to use deleteas instead...&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;automatec /getauthtoken /sso&lt;/LI&gt;
&lt;LI&gt;via HTTP or Telnet:&lt;BR /&gt;internalauth (token)&lt;BR /&gt;deleteas (token) (sessionid)&lt;/LI&gt;
&lt;/UL&gt;
&lt;BR /&gt;The response:&lt;BR /&gt;&lt;STRONG&gt;AUTH ACCEPTED&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ERROR:Could not update database following deletion - Authorization error: No matching token found in database&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I can create and delete the pending session manually via the GUI. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 14 Aug 2020 19:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92387#M42186</guid>
      <dc:creator>ErickBaker</dc:creator>
      <dc:date>2020-08-14T19:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Database Errors deleting pending session via ResourcePC command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92388#M42187</link>
      <description>&lt;P&gt;Hi Eric,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffff99;"&gt;I can create and delete the pending session manually via the GUI. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;You can delete the pending session from Control room by right click --&amp;gt; Delete. This is our recommendation.&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="19653.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/19806i12E002D2BB8D2A27/image-size/large?v=v2&amp;amp;px=999" role="button" title="19653.png" alt="19653.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;But if there is any reason, you may run sql script to delete the pending session.&amp;nbsp;&lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt;(Please bear in mind that any modifications to the data is done by a Database Administrator. It is not normal practice to delete records from the tables, therefore it would be wise to have a DBA put the statements into a transaction in case you need to roll them back. Also, you should perform a backup of the data before performing the changes.)&lt;/SPAN&gt;&lt;BR /&gt;There is a link between the Session and SessionLog tables via the Session Number value.&amp;nbsp;To remove a specific session you will need to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Identify the "sessionnumber" number from the BPASession table based on your problem GUID. (for example, "1065").&lt;/LI&gt;
&lt;LI&gt;Delete the records in the BPASessionLog_NonUnicode table (or BPASessionLog_Unicode, if you are using unicode enabled logging) where the "sessionnumber" is the "sessionnumber" from BPASession (for example, all records where the session number is "1065").image&lt;/LI&gt;
&lt;LI&gt;Delete the record in the BPASession table where the "sessionnumber" identifies the specific record (for example, the one record with the session number "1065")/image&lt;/LI&gt;
&lt;LI&gt;Alternatively, you could archive the session logs to a point just after the failing session was initially run. Using this method would get the product to delete the session log record for you.&lt;/LI&gt;
&lt;/OL&gt;
&lt;BR /&gt;Please refer to the link below in our knowledge page.&lt;BR /&gt;&lt;SPAN&gt;&lt;A href="http://portal.blueprism.com/customer-support/support-center#/path/1201067362" target="test_blank"&gt;http://portal.blueprism.com/customer-support/support-center#/path/1201067362&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Nobu&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nobuhiro Tokushige&lt;BR /&gt;Product Specialist&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2020 03:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92388#M42187</guid>
      <dc:creator>nobu</dc:creator>
      <dc:date>2020-08-17T03:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Database Errors deleting pending session via ResourcePC command</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92389#M42188</link>
      <description>Hi Nobuhiro,&amp;nbsp;&lt;BR /&gt;it is possible not to delete the pending item in the DB but send a http request to the server in order to start or stop the pending item. I don't want to use the BP solution as far we only have on resource and therefore prefer to handle it via scripts.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;S D&lt;BR /&gt;consultant&lt;BR /&gt;NoName&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jun 2021 15:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Errors-deleting-pending-session-via-ResourcePC-command/m-p/92389#M42188</guid>
      <dc:creator>SD</dc:creator>
      <dc:date>2021-06-18T15:30:00Z</dc:date>
    </item>
  </channel>
</rss>

