<?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 Timeout Crashes Blueprism in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87995#M38625</link>
    <description>Christian;&lt;BR /&gt;&lt;BR /&gt;I would reach out to Blue Prism support and get our "Housekeeping Scripts."&amp;nbsp; Maintenance of the BP database is critical to keeping it running.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Blue Prism isn't a great reporting tool so regularly archiving data is a good idea.&amp;nbsp; Typically not more than about 7 days is required.&amp;nbsp; The tables that tend to get large and cause problems are the Session Log and Workqueue tables.&amp;nbsp; It is typically better to move the data to another database or repository and run reports from there.&amp;nbsp; Especially if it's a large active environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Another thing to look for is running processes in Production using Full Logging.&amp;nbsp; Many people don't realize that's not simple logging it's more like debug logging mainly for development and should rarely be used in Production.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Steve Waters&lt;BR /&gt;Platform Consultant&lt;BR /&gt;Blue Prism Professional Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 07 May 2020 12:57:00 GMT</pubDate>
    <dc:creator>SteveWaters</dc:creator>
    <dc:date>2020-05-07T12:57:00Z</dc:date>
    <item>
      <title>Database Timeout Crashes Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87993#M38623</link>
      <description>Hello guys,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am having issues with databases timeouts causing crash on blue prism.&amp;nbsp; When I open the server this message appears as the blueprism has stopped working.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="16106.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/16259i162D29448BA602F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="16106.png" alt="16106.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Some robot logs indicate that other bases that the robot queries are also timout, but in this case I believe that the application is crashing due to the timeout of its own database. It is a database with a lot of infrastructure resources so I don't understand how this problem can happen.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;So I got the event viewer logs and got the following error.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;BluePrism.AutomateAppCore.Resources.ResourceRunnerBase&lt;BR /&gt;[2020-05-02 09:04:01Z] Listener failed : failed to update resourcepc details on the database - System.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=4; handshake=14998; ---&amp;gt; System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out&lt;BR /&gt;&lt;BR /&gt;Server stack trace: &lt;BR /&gt; at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal&amp;amp; connection)&lt;BR /&gt; at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal&amp;amp; connection)&lt;BR /&gt; at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal&amp;amp; connection)&lt;BR /&gt; at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)&lt;BR /&gt; at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)&lt;BR /&gt; at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)&lt;BR /&gt; at System.Data.SqlClient.SqlConnection.Open()&lt;BR /&gt; at BluePrism.AutomateAppCore.clsDBConnection.SetupCommand(IDbCommand cmd)&lt;BR /&gt; at BluePrism.AutomateAppCore.clsDBConnection.ExecuteReturnDataReader(IDbCommand cmd, CommandBehavior behave)&lt;BR /&gt; at BluePrism.AutomateAppCore.clsServer.GetResourceIdAndFQDN(IDatabaseConnection con, String resourceName, String&amp;amp; fqdn)&lt;BR /&gt; at BluePrism.AutomateAppCore.clsServer.RefreshResourcePC(String resourceName, ResourceDBStatus status, Int32 runningSessions, Int32 activeSessions)&lt;BR /&gt; at SyncInvokeRefreshResourcePC(Object , Object[] , Object[] )&lt;BR /&gt; at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]&amp;amp; outputs)&lt;BR /&gt; at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc&amp;amp; rpc)&lt;BR /&gt; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc&amp;amp; rpc)&lt;BR /&gt; at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc&amp;amp; rpc)&lt;BR /&gt; at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)&lt;BR /&gt; at BluePrism.BPCoreLib.Extensions.RethrowWithStackTrace(Exception this)&lt;BR /&gt; at BluePrism.AutomateAppCore.MyExceptionHandlingMessageInspector.AfterReceiveReply(Message&amp;amp; reply, Object correlationState)&lt;BR /&gt; at System.ServiceModel.Dispatcher.ImmutableClientRuntime.AfterReceiveReply(ProxyRpc&amp;amp; rpc)&lt;BR /&gt; at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc&amp;amp; rpc)&lt;BR /&gt; at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)&lt;BR /&gt; at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)&lt;BR /&gt; at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)&lt;BR /&gt;&lt;BR /&gt;Exception rethrown at [0]: &lt;BR /&gt; at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)&lt;BR /&gt; at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;amp; msgData, Int32 type)&lt;BR /&gt; at BluePrism.AutomateAppCore.IServer.RefreshResourcePC(String name, ResourceDBStatus status, Int32 runningSessions, Int32 activeSessions)&lt;BR /&gt; at BluePrism.AutomateAppCore.clsListener.RefreshDBWithCurrentState()&lt;BR /&gt;ClientConnectionId:4c5f8ae8-d30f-45d1-8506-7751d32356ee&lt;BR /&gt;Error Number:-2,State:0,Class:11&lt;BR /&gt;&lt;BR /&gt;Someone already have this kind of trouble ?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;christian silva&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 06 May 2020 13:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87993#M38623</guid>
      <dc:creator>christiansilva</dc:creator>
      <dc:date>2020-05-06T13:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Database Timeout Crashes Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87994#M38624</link>
      <description>Hi Christian,&lt;BR /&gt;&lt;BR /&gt;It is worth isolating problem by first checking your Database Utilization to see if there is any table having size more than 30GB, if you did not do regular archiving or housekeeping.&lt;BR /&gt;&lt;BR /&gt;If really your found a table is too large and Archiving does not work, log a ticket with support and ask for House Keeping scripts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Henry Li&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 May 2020 08:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87994#M38624</guid>
      <dc:creator>henrynli</dc:creator>
      <dc:date>2020-05-07T08:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Database Timeout Crashes Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87995#M38625</link>
      <description>Christian;&lt;BR /&gt;&lt;BR /&gt;I would reach out to Blue Prism support and get our "Housekeeping Scripts."&amp;nbsp; Maintenance of the BP database is critical to keeping it running.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Blue Prism isn't a great reporting tool so regularly archiving data is a good idea.&amp;nbsp; Typically not more than about 7 days is required.&amp;nbsp; The tables that tend to get large and cause problems are the Session Log and Workqueue tables.&amp;nbsp; It is typically better to move the data to another database or repository and run reports from there.&amp;nbsp; Especially if it's a large active environment.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Another thing to look for is running processes in Production using Full Logging.&amp;nbsp; Many people don't realize that's not simple logging it's more like debug logging mainly for development and should rarely be used in Production.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Steve Waters&lt;BR /&gt;Platform Consultant&lt;BR /&gt;Blue Prism Professional Services&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 May 2020 12:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87995#M38625</guid>
      <dc:creator>SteveWaters</dc:creator>
      <dc:date>2020-05-07T12:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Database Timeout Crashes Blueprism</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87996#M38626</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;We&amp;nbsp;did&amp;nbsp;have&amp;nbsp;database&amp;nbsp;issues&amp;nbsp;ourselves&amp;nbsp;at&amp;nbsp;one&amp;nbsp;time,&amp;nbsp;for&amp;nbsp;us&amp;nbsp;it&amp;nbsp;was&amp;nbsp;causing&amp;nbsp;the&amp;nbsp;Get&amp;nbsp;Next&amp;nbsp;Item&amp;nbsp;stages&amp;nbsp;to&amp;nbsp;timeout.&amp;nbsp;Eventually,&amp;nbsp;after&amp;nbsp;observing&amp;nbsp;the&amp;nbsp;database&amp;nbsp;via&amp;nbsp;SQL&amp;nbsp;Profiler,&amp;nbsp;we&amp;nbsp;found&amp;nbsp;the&amp;nbsp;issue&amp;nbsp;to&amp;nbsp;be&amp;nbsp;a&amp;nbsp;bad&amp;nbsp;execution&amp;nbsp;plan,&amp;nbsp;and&amp;nbsp;rebuilding&amp;nbsp;indexes&amp;nbsp;on&amp;nbsp;the&amp;nbsp;BPAWorkQueueItem&amp;nbsp;table&amp;nbsp;resolved&amp;nbsp;it.&amp;nbsp;I&amp;nbsp;would&amp;nbsp;personally&amp;nbsp;recommend&amp;nbsp;using&amp;nbsp;SQL&amp;nbsp;Profiler&amp;nbsp;to&amp;nbsp;see&amp;nbsp;if&amp;nbsp;there&amp;nbsp;are&amp;nbsp;any&amp;nbsp;unusual&amp;nbsp;wait&amp;nbsp;times&amp;nbsp;on&amp;nbsp;queries.&amp;nbsp;Also,&amp;nbsp;checking&amp;nbsp;the&amp;nbsp;Page&amp;nbsp;Life&amp;nbsp;Expectancy&amp;nbsp;on&amp;nbsp;your&amp;nbsp;database&amp;nbsp;would&amp;nbsp;help&amp;nbsp;to&amp;nbsp;indicate&amp;nbsp;if&amp;nbsp;there&amp;nbsp;in&amp;nbsp;fact&amp;nbsp;any&amp;nbsp;performance&amp;nbsp;issues.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;To&amp;nbsp;Henry's&amp;nbsp;point&amp;nbsp;about&amp;nbsp;table&amp;nbsp;sizes,&amp;nbsp;I&amp;nbsp;haven't&amp;nbsp;seen&amp;nbsp;any&amp;nbsp;evidence&amp;nbsp;that&amp;nbsp;suggests&amp;nbsp;that&amp;nbsp;table&amp;nbsp;sizes&amp;nbsp;would&amp;nbsp;cause&amp;nbsp;any&amp;nbsp;kind&amp;nbsp;of&amp;nbsp;an&amp;nbsp;issue.&amp;nbsp;Our&amp;nbsp;session&amp;nbsp;log&amp;nbsp;table&amp;nbsp;at&amp;nbsp;one&amp;nbsp;time&amp;nbsp;was&amp;nbsp;over&amp;nbsp;150&amp;nbsp;GB&amp;nbsp;until&amp;nbsp;we&amp;nbsp;trimmed&amp;nbsp;it&amp;nbsp;for&amp;nbsp;the&amp;nbsp;sake&amp;nbsp;of&amp;nbsp;disk&amp;nbsp;space,&amp;nbsp;but&amp;nbsp;there&amp;nbsp;was&amp;nbsp;no&amp;nbsp;performance&amp;nbsp;change&amp;nbsp;on&amp;nbsp;any&amp;nbsp;queries.&amp;nbsp;Likewise,&amp;nbsp;we&amp;nbsp;have&amp;nbsp;2.5&amp;nbsp;million&amp;nbsp;work&amp;nbsp;queue&amp;nbsp;items&amp;nbsp;currently&amp;nbsp;sitting&amp;nbsp;in&amp;nbsp;the&amp;nbsp;BPAWorkQueueItem&amp;nbsp;table,&amp;nbsp;but&amp;nbsp;it&amp;nbsp;does&amp;nbsp;not&amp;nbsp;cause&amp;nbsp;any&amp;nbsp;performance&amp;nbsp;issues (so long there are not thousands of items in pending).&amp;nbsp;I've&amp;nbsp;monitored&amp;nbsp;a&amp;nbsp;lot&amp;nbsp;of&amp;nbsp;Blue&amp;nbsp;Prism's&amp;nbsp;queries&amp;nbsp;via&amp;nbsp;SQL&amp;nbsp;Profiler&amp;nbsp;and&amp;nbsp;they&amp;nbsp;seem&amp;nbsp;pretty&amp;nbsp;well&amp;nbsp;designed&amp;nbsp;and&amp;nbsp;indexed&amp;nbsp;to&amp;nbsp;avoid&amp;nbsp;performance&amp;nbsp;degradation&amp;nbsp;on&amp;nbsp;table&amp;nbsp;growth.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nicholas Zejdlik&lt;BR /&gt;RPA Developer&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 07 May 2020 15:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Database-Timeout-Crashes-Blueprism/m-p/87996#M38626</guid>
      <dc:creator>NicholasZejdlik</dc:creator>
      <dc:date>2020-05-07T15:18:00Z</dc:date>
    </item>
  </channel>
</rss>

