<?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>QueryEntity unable to retrieve large data in expression rule</title><link>https://community.appian.com/discussions/f/rules/17791/queryentity-unable-to-retrieve-large-data-in-expression-rule</link><description>Hi, 
 
 We are facing an issue while using a!queryEntity to retrieve data from a View table which contains a totalCount of around 100,000 records. The expression rule fails when batchsize is -1 and returns the following error &amp;quot; Expression evaluation error</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: QueryEntity unable to retrieve large data in expression rule</title><link>https://community.appian.com/thread/70031?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 06:54:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:829d565b-b603-48a4-a2c7-2c328d0c1bcc</guid><dc:creator>yogalakshmia962829</dc:creator><description>&lt;p&gt;While fetching data via query there is a limit on the time taken to retrieve data. Querying in batches may resolve your issue.&lt;/p&gt;
&lt;p&gt;If the data has to be queried in bulk, you can use a stored procedure as an alternative. But that too has some pros and cons.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QueryEntity unable to retrieve large data in expression rule</title><link>https://community.appian.com/thread/70030?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 06:46:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:062d65f6-c0fd-427e-ae53-0a76b56f5931</guid><dc:creator>Sushil Kapoor</dc:creator><description>&lt;p&gt;As said,&lt;/p&gt;
&lt;p&gt;1. TIme taken to run the query is limited and configure in the property file.&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;The amount&lt;span&gt;&amp;nbsp;of memory in bytes is also limited in conf file that.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Better to use paging and query in batch to keep the application in performance.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Let us know above 2 point config value and&amp;nbsp;&lt;strong&gt;queryEntity expression to fins the issues.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;Cheers&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: QueryEntity unable to retrieve large data in expression rule</title><link>https://community.appian.com/thread/70028?ContentTypeID=1</link><pubDate>Fri, 18 Oct 2019 06:34:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23e0202d-f6d5-4d19-99ca-5ec87d4bebee</guid><dc:creator>dineshd0001</dc:creator><description>&lt;p&gt;&lt;a href="/members/rizwana0001"&gt;rizwan0001&lt;/a&gt; I think here&amp;nbsp; the issue is not with the query entity , please check the time taken by the view to retrive the complete data from the DB client side. If its taking moretime the issue is with the view. I dont think so 100000 record is the issue and my suggestion is to always use paging and get datas as per the batching.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>