<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1681 Unable to retrieve data due to query timeout</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1681 Unable to retrieve data due to query timeout</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout</link><pubDate>Wed, 11 May 2022 16:25:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Elly Meng</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Current Revision posted to Appian Knowledge Base by Elly Meng on 5/11/2022 4:25:15 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run and one of the following errors is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with one of the following &amp;quot;caused by&amp;quot; clauses:&lt;/p&gt;
&lt;pre class="code-java"&gt;Caused by: java.sql.SQLTimeoutException: (conn=&amp;lt;connection id&amp;gt;) Query execution was interrupted (max_statement_time exceeded)&lt;/pre&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: org.hibernate.exception.GenericJDBCException: could not execute query&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The query has timed out.&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;These errors indicate that the query reached the query timeout threshold, causing it to time out. This threshold is set to 10 seconds for&amp;nbsp;Appian Cloud environments. For more information about this timeout threshold, see our documentation on&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. See:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" rel="noopener noreferrer" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" rel="noopener noreferrer" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; increasing the timeout threshold may impact system performance and stability, and is not configurable for&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" rel="noopener noreferrer" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: May 2022&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>KB-1681 Unable to retrieve data due to query timeout</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/13</link><pubDate>Mon, 10 Sep 2018 21:04:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 13 posted to Appian Knowledge Base by Parmida Borhani on 9/10/2018 9:04:43 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with one of the following caused by clauses:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: org.hibernate.exception.GenericJDBCException: could not execute query&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The query has timed out.&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;These errors indicate that the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>KB-1681 Unable to retrieve data due to query timeout</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/12</link><pubDate>Mon, 10 Sep 2018 21:04:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 12 posted to Appian Knowledge Base by Parmida Borhani on 9/10/2018 9:04:09 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: org.hibernate.exception.GenericJDBCException: could not execute query&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The query has timed out.&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;These errors indicate that the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>KB-1681 Unable to retrieve data due to query timeout</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/11</link><pubDate>Mon, 10 Sep 2018 20:58:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 11 posted to Appian Knowledge Base by Parmida Borhani on 9/10/2018 8:58:41 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;These errors indicate that the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: September 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>KB-1681 MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/10</link><pubDate>Thu, 30 Aug 2018 02:56:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 10 posted to Appian Knowledge Base by Parmida Borhani on 8/30/2018 2:56:43 AM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/9</link><pubDate>Wed, 29 Aug 2018 22:56:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 9 posted to Appian Knowledge Base by Parmida Borhani on 8/29/2018 10:56:05 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/8</link><pubDate>Wed, 29 Aug 2018 22:52:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 8 posted to Appian Knowledge Base by Parmida Borhani on 8/29/2018 10:52:23 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/7</link><pubDate>Wed, 29 Aug 2018 22:48:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 8/29/2018 10:48:50 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and one of the following error(s) is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; (called by rules &amp;#39;&amp;lt;rule name 1&amp;gt;&amp;#39; &amp;gt; &amp;#39;&amp;lt;rule name 2&amp;gt;&amp;#39;) at function a!queryEntity: An error occurred while retrieving the data. (APNX-1-4198-000)&lt;/pre&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;with the following caused by:&lt;/p&gt;
&lt;pre&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/6</link><pubDate>Wed, 29 Aug 2018 19:57:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Tom Ryan on 8/29/2018 7:57:00 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;. For Appian Cloud environments, this threshold is set at 10 seconds.&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/5</link><pubDate>Wed, 29 Aug 2018 19:55:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Tom Ryan on 8/29/2018 7:55:34 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException indicates that&amp;nbsp;the query has reached the query timeout threshold which has caused the query to time out. For more information on the timeout threshold, see: &lt;a href="https://docs.appian.com/suite/help/latest/Post-Install_Configurations.html#query-rule-limits"&gt;Query Rule Limits&lt;/a&gt;.&amp;nbsp; &lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query should be optimized so that it can be completed within the timeout. Note that increasing the timeout threshold may impact the system performance and stability. The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/4</link><pubDate>Wed, 29 Aug 2018 19:44:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Tom Ryan</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Tom Ryan on 8/29/2018 7:44:55 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException suggests that&amp;nbsp;the query has reached the ten&amp;nbsp;second query timeout in Appian Cloud. In on-premise environments of Appian, the timeout value may differ based on the implementation.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query timeout value is not configurable in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;. Instead, the query should be optimized so that the data can be returned within ten seconds.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/1</link><pubDate>Wed, 29 Aug 2018 01:21:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Parmida Borhani on 8/29/2018 1:21:15 AM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException suggests that&amp;nbsp;the query has reached the ten&amp;nbsp;second query timeout in Appian Cloud. In on-premise environments of Appian, the timeout value may differ based on the configuration.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &amp;#39;Execute Time (ms)&amp;#39; column of the perf_monitor_rdbms_slow.csv log located in &amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query timeout value cannot be modified in Appian Cloud. Instead, the query should be optimized so that the data can be returned within ten seconds.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/3</link><pubDate>Tue, 28 Aug 2018 21:24:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 8/28/2018 9:24:12 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException suggests that&amp;nbsp;the query has reached the ten&amp;nbsp;second query timeout in Appian Cloud. In on-premise environments of Appian, the timeout value may differ based on the implementation.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query timeout value cannot be modified in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;. Instead, the query should be optimized so that the data can be returned within ten seconds.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance, infrastructure, Cloud&lt;/div&gt;
</description></item><item><title>[DRAFT] KB-XXXX MySQLTimeoutException: Statement cancelled due to timeout or client request</title><link>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout/revision/2</link><pubDate>Tue, 28 Aug 2018 21:23:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e511da-31a8-419c-a662-09b7e59ce53a</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/1103/kb-1681-unable-to-retrieve-data-due-to-query-timeout#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Parmida Borhani on 8/28/2018 9:23:57 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;A query rule fails to run, and the following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt;Expression evaluation error in rule &amp;#39;&amp;lt;rule name&amp;gt;&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [&amp;lt;CDT name&amp;gt;], query: [&amp;lt;rule name&amp;gt;], order by: [[]], filters:[null])&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;/pre&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;The MySQLTimeoutException suggests that&amp;nbsp;the query has reached the ten&amp;nbsp;second query timeout in Appian Cloud. In on-premise environments of Appian, the timeout value may differ based on the implementation.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Review&amp;nbsp;the &lt;strong&gt;&amp;#39;Execute Time (ms)&amp;#39;&lt;/strong&gt; column of the &lt;strong&gt;perf_monitor_rdbms_slow.csv&lt;/strong&gt; log located in &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/logs/perflogs&lt;/code&gt; to confirm if the failed query has exceeded the configured timeout value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The query timeout value cannot be modified in &lt;a href="https://docs.appian.com/suite/help/latest/Appian_Cloud_FAQ.html#Updating_property_files_in_Appian_Cloud" target="_blank"&gt;Appian Cloud&lt;/a&gt;. Instead, the query should be optimized so that the data can be returned within ten seconds.&lt;/p&gt;
&lt;p&gt;Also see:&amp;nbsp;&lt;a href="/w/the-appian-playbook/197/database-performance-best-practices" target="_blank"&gt;Database Performance Best Practices&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="/w/the-appian-playbook/967/an-introduction-to-query-optimization" target="_blank"&gt;An Introduction to Query Optimization&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: August 2018&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: database, query rules, Performance&lt;/div&gt;
</description></item></channel></rss>