<?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>Retrieving huge amount of data</title><link>https://community.appian.com/discussions/f/general/20168/retrieving-huge-amount-of-data</link><description>Hi, 
 I have created a view to display it in read only grid. 
 There is huge amount of data that needs to be retrieved and displayed. 
 But when am writing simple query to fetch data am getting error: 
 a!queryEntity( entity: cons!AB_DE_V_DD, query: a</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78912?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 14:33:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09cb6899-0a17-4521-a64c-5698e600d455</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Check whether any of the dateTime values in the DB are coming back as &amp;quot;0000-00-00 00:00:00&amp;quot; or similar to this.&amp;nbsp; I&amp;#39;ve seen tthis happen before and it breaks the Appian query.&amp;nbsp; On the other hand, NULL values in the dateTime column should work fine from within Appian.&amp;nbsp; This is my best guess without being provided more detail as to what error you&amp;#39;re getting or what the appian logs say.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78897?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 00:42:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b2b36d27-85e6-474b-838b-6a6d4b97b263</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;&lt;a href="/members/mikes0011"&gt;Mike Schmitt&lt;/a&gt;Can you suggest what exact change i need to do in DB so that i don&amp;#39;t face any issue while retrieving data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78896?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 00:39:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd494aa1-002f-4fc2-b357-1f4535935964</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;I am building a dashboard&amp;nbsp; for which I have around 8 date and time field, Some time am able to retrieve complete data without any error but sometime it throws an error. In date and time field some dates have NULL value. Can you suggest some solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78832?ContentTypeID=1</link><pubDate>Sun, 10 Jan 2021 14:38:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3356ed3f-7e1b-4535-b50e-cb6bfd574a08</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;That filter logic wouldn&amp;#39;t work.&amp;nbsp; You&amp;#39;re close, though.&amp;nbsp; Try this version instead:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="java"&gt;a!queryFilter(
  field: &amp;quot;recordedon&amp;quot;,
  operator: &amp;quot;&amp;gt;&amp;quot;,
  value: today() - 10
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78787?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2021 09:23:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:57c732f1-4603-41d5-bba4-953519118f76</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;You could also add a &amp;#39;selection&amp;#39; to your query to only retrieve data from the columns you need, rather than retrieve everything (which is the default). This is a good principle - only retrieve the data you need in the context you need it. You can also constrain the number of rows retrieved, which it looks like you are, by setting the batchSize to a value other than -1 (which is &amp;#39;everything&amp;#39;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78782?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 19:36:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d7295062-ab77-4708-8b80-b3b9db116368</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Anyway thanks for help made changes from database side to retrieve data for 10 days.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78781?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 19:09:59 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a48a3692-f40a-4b01-a28b-d91f55958e3f</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks but still using date filter am getting&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Error as&lt;/strong&gt;&amp;nbsp;&lt;span&gt;Expression evaluation error at function a!queryEntity: An error occurred while retrieving the data.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But using filters on other fields am able to retrieve data&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;a!queryFilter(&lt;br /&gt; field: &amp;quot;recordedon&amp;quot;,&lt;br /&gt; operator: &amp;quot;in&amp;quot;,&lt;br /&gt; value: index(ri!recordedon &amp;gt; = {today()- 10},&amp;quot;recordedon&amp;quot;,{})&lt;br /&gt; ),&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any other logic that can be used to get data for last 10 days.&amp;nbsp; If so please provide the code&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78779?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 17:18:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0f67aebb-dfde-4b95-b4f8-463e2e183b30</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Your Query Entity can include a queryFilter() where you can compare a date that is in your data with today()-10, for example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78778?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 16:49:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d832401-45ea-441d-aa6c-4638f7ae0e84</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Can you help me with like how to retrieve data from db for last 10 days&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78777?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 16:49:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c119ef7-f104-43fc-b768-70ae19b4bb16</guid><dc:creator>akshayg0006</dc:creator><description>&lt;p&gt;Thanks seems so many date field are used so that issue..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieving huge amount of data</title><link>https://community.appian.com/thread/78774?ContentTypeID=1</link><pubDate>Wed, 06 Jan 2021 14:32:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c32dfa8a-c697-4db5-b906-50b2eeecc3e2</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;You need to examine the Appian logs to find out the exact root cause of the error. Look in the current stdOut log. Given that you&amp;#39;ve already said the dataset is huge it may be volume-related, but check the logs to be sure, there are other reasons why this error occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>