<?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>Process instances are stucked while querying data from a View in database.</title><link>https://community.appian.com/discussions/f/general/19839/process-instances-are-stucked-while-querying-data-from-a-view-in-database</link><description>Hi, 
 the process instances are stucking ,while querying the data from a view . the error is coming as: 
 Expression evaluation error in rule!x, at fn!a!queryEntity18r3.An error occurred while retrieving the data. 
 The view is having around 51000 rows</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process instances are stucked while querying data from a View in database.</title><link>https://community.appian.com/thread/77659?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 14:09:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4f21593d-665a-4416-9a38-ac0ffd681d82</guid><dc:creator>kais</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What Stefan is referring to is this:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The amount of memory in bytes that will be consumed in the application server for a single query before the query is halted is configured using the following property:&lt;/em&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;em&gt;conf.data.query.memory.limit=1048576&lt;/em&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;The default is 1048576 bytes (1 MB).&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;NOTE: Before changing this value, consider using the query paging parameter to return less data (or return data in batches) and therefore avoid the limit. Also, consider whether the entire set of data that is being returned is actually needed. If not, use the query expression functions to select which fields to return&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The full text can be found here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/Post-Install_Configurations.html#query-limits"&gt;https://docs.appian.com/suite/help/20.3/Post-Install_Configurations.html#query-limits&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process instances are stucked while querying data from a View in database.</title><link>https://community.appian.com/thread/77634?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 20:38:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee243934-a114-4fae-bba7-87cf6161ce7c</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is another limit&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/Configuring_Relational_Databases.html#query-rule-return-size-limits"&gt;docs.appian.com/.../Configuring_Relational_Databases.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process instances are stucked while querying data from a View in database.</title><link>https://community.appian.com/thread/77631?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 17:45:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:48d21db7-5f06-435c-9ece-85dec77cc867</guid><dc:creator>anupriyak0002</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;the query execution time limit is 10 sec as per link&amp;nbsp; given by you, but my query rule is taking 1607 ms =1.607 sec for execution,when I test the query rule, then it works fine, it gives me result in 1607 ms, but in process instance , where this rule is called, that instance stucked while running the process.&lt;/p&gt;
&lt;p&gt;its gives error:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;An error occurred while evaluating expression: =rule!x(y: rule!z(y: pv!y),y: pv!y) (Expression evaluation error in rule &amp;#39;p&amp;#39; at function a!queryEntity_18r3 [line 9]: An error occurred while retrieving the data.) (Data Inputs)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In logs its saying as:&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;could not execute query&lt;/pre&gt;
&lt;pre&gt;Statement cancelled due to timeout or client request&lt;br /&gt;Please suggest.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process instances are stucked while querying data from a View in database.</title><link>https://community.appian.com/thread/77541?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 10:47:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:15678c52-8b8d-46f3-8687-e365dc2c21ba</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There are certain limitations. Loading 50k rows into Appian feels not like being a good idea. This might give you a hint.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/20.3/Querying_Data_From_an_RDBMS.html#other"&gt;https://docs.appian.com/suite/help/20.3/Querying_Data_From_an_RDBMS.html#other&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Did you check the Appian logs and process monitoring for error messages?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>