<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Hi guys,  We&amp;#39;re having a strange issue with a query rule on one of</title><link>https://community.appian.com/discussions/f/rules/4991/hi-guys-we-re-having-a-strange-issue-with-a-query-rule-on-one-of</link><description>Hi guys, We&amp;#39;re having a strange issue with a query rule on one of our sites. We&amp;#39;re seeing &amp;#39;Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query&amp;#39; in the front-end and this in the logs: 14:33:26,501 INFO [stdout] (ajp-/0.0.0.0:8009</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hi guys,  We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/64083?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 22:19:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4b07dc6-fe0a-4059-9235-06e08a25cca0</guid><dc:creator>josep</dc:creator><description>Hello Srikanth, &lt;br /&gt;
&lt;br /&gt;
I have been in that error &amp;quot;MySQLTimeoutException&amp;quot; and seems like the timeout is 60 seconds or less so the bet way to approach this issue is as follows:&lt;br /&gt;
* Avoid making joins using tables which are large because this might exceed the time used when querying the information. &lt;br /&gt;
* If possible and worth it(the size is really big) create a Materialized view, actually this can improve your response time from the DB and the time will be transferred to the &amp;quot;transformation&amp;quot; &lt;br /&gt;
* if you still want to deal with the join times use the &amp;quot;Explain select&amp;quot; ti will give you really good hints of the problems and how to solve them. &lt;br /&gt;
* filter as much as possible and review indexes on your tables. &lt;br /&gt;
&lt;br /&gt;
hope this helps &lt;br /&gt;
jose&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi guys,  We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/64072?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 14:07:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:76c6de8c-3513-49a7-b17a-15dca4b64b18</guid><dc:creator>srikanthm0004</dc:creator><description>Has anyone found the solution for this error : APNX-1-4164-028?&lt;br /&gt;
&lt;br /&gt;
We are getting the same error and we cross checked the view to make sure there isn&amp;#39;t any invalid date formats.&lt;br /&gt;
&lt;br /&gt;
21:35:14,295 INFO  [stdout] (Appian Work Item - 59831 - execution01 : ExpressionGroupRequest) Caused by: com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException: com.appiancorp.suiteapi.common.exceptions.AppianException: Unexpected error executing query (type: [XXXViewDT8164], query: [queryentity expression], order by: [[Sort[userId asc]]], filters:[(userId in TypedValue[it=101,v={5184}])]) (APNX-1-4164-028)&lt;br /&gt;
&lt;br /&gt;
21:35:14,507 INFO  [stdout] (Appian Work Item - 59835 - execution15 : ExpressionGroupRequest) Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi guys,&lt;br /&gt;&lt;br /&gt;We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/18322?ContentTypeID=1</link><pubDate>Thu, 28 May 2015 00:20:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b69d99ff-4c3a-4ca8-a41c-3211ef320c4d</guid><dc:creator>sikhivahans</dc:creator><description>@carolines Hi, to confirm the error, digging much deeper into the logs is suggested. As suggested by rodgraham, if there are any such kind of issues, logs will clearly show them AFAIK. For instance, invalid foreign key will be represented by 'No row with the given identifier exists' and badly formatted date will be represented with 'Value '0000-00-00' can not be represented as java.sql.Timestamp' and so on.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi guys,&lt;br /&gt;&lt;br /&gt;We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/18320?ContentTypeID=1</link><pubDate>Wed, 27 May 2015 22:38:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7b8711b3-d852-4a22-acfa-cfa840301cb7</guid><dc:creator>rodgraham</dc:creator><description>I&amp;#39;ve seen this sort of error before when the data in the database has something incorrect e.g badly formatted dates 00-00-0000 or if you&amp;#39;ve got any foreign constraints that ate being violated. Might be worth checking the data in each column for the one that is failing&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi guys,&lt;br /&gt;&lt;br /&gt;We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/18309?ContentTypeID=1</link><pubDate>Wed, 27 May 2015 18:45:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cb7f7672-6ae5-4a4c-8162-e39c8f67047a</guid><dc:creator>caz</dc:creator><description>...pected error executing query (type: [MMClientGroupDT393], query: [MM_ClientGroupByNameProvider], order by: [[]], filters:[((Provider.Name = TypedValue[it=3,v=Moving Minds]) AND (Name = TypedValue[it=3,v=Enable Therapy Services]))]) (APNX-1-4164-028)&lt;br /&gt;&lt;br /&gt;14:33:26,523 INFO  [stdout] (ajp-/0.0.0.0:8009-36) Caused by: org.hibernate.TransientObjectException: The instance was not associated with this session&lt;br /&gt;&lt;br /&gt;Thanks!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hi guys,&lt;br /&gt;&lt;br /&gt;We're having a strange issue with a query rule on one of</title><link>https://community.appian.com/thread/18308?ContentTypeID=1</link><pubDate>Wed, 27 May 2015 18:45:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bf3d29cd-5c68-4be0-b840-dfe567ce9ba8</guid><dc:creator>caz</dc:creator><description>...xpressionRuntimeException$AppianExceptionProvider: Expression evaluation error in rule &amp;#39;mm_clientgroupbynameprovider&amp;#39; at function &amp;#39;queryruleexec&amp;#39;: Error evaluating function &amp;#39;queryruleexec&amp;#39; : Unexpected error executing query (type: [MMClientGroupDT393], query: [MM_ClientGroupByNameProvider], order by: [[]], filters:[((Provider.Name = TypedValue[it=3,v=Moving Minds]) AND (Name = TypedValue[it=3,v=Enable Therapy Services]))]) (APNX-1-4198-000)&lt;br /&gt;&lt;br /&gt;This suggested a problem with the Provider nested CDT. I changed this in the database to use a different ProviderID and the rule worked fine. I changed it back to the old ProviderID and it breaks again. We&amp;#39;ve tested the rule with other ClientNames for that ProviderID and it works without problems. Any ideas?&lt;br /&gt;&lt;br /&gt;The caused by items are below:&lt;br /&gt;&lt;br /&gt;14:33:26,520 INFO  [stdout] (ajp-/0.0.0.0:8009-36) Caused by: com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException: com.appiancorp.suiteapi.common.exceptions.AppianException: Unex...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>