<?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>Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/discussions/f/rules/39050/facing-an-issue-regarding-queryentity-in-expression-rule</link><description>In a queryentity function, in an interface, I&amp;#39;m getting an error like &amp;quot;Unexpected error executing query (type: [CPVAccountsStatementTrackerDT8331], query:[queryentity expression], order by: [[Sort[FinancialInstitutionOther asc]]], filters:[(firmId = TypedValue</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/149046?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 07:43:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:122f19c0-5667-49b5-bfa2-6c396f07a161</guid><dc:creator>shilpak7081</dc:creator><description>&lt;p&gt;else try to configure query filters to limit output result set&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/149041?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2025 07:28:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:45768aab-48ab-4b1e-b1b3-69055d5bf93f</guid><dc:creator>shilpak7081</dc:creator><description>&lt;p&gt;Can you try by giving batch size, instead of&amp;nbsp; instead of minus 1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147794?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 13:14:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:513bd75c-baa3-4791-829a-77fab97c1d04</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;Then it&amp;#39;s definitely timing out when you try to query everything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, when a data set is big enough to cause this timeout, you are almost guaranteeing a miserable user experience when anyone tries to use that dropdown.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will likely need to implement at least one of the suggestions mentioned above: either implement a 2-dropdown cascading system (where a first dropdown selects some sort of subset/category, and the second dropdown queries only those items to show), or implement a Custom Picker Field.&amp;nbsp; I don&amp;#39;t use Custom Picker Field all that much, but this is one of those times where I almost certainly would.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147771?ContentTypeID=1</link><pubDate>Mon, 05 May 2025 05:32:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:269e30ab-1708-4e9c-8f27-5698126dfe37</guid><dc:creator>Swapnil Kharate</dc:creator><description>&lt;p&gt;Yes the query works when we put other than -1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147749?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 14:32:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e9a1a219-fcee-4559-87de-029e2d5496d9</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I agree with Stefan (as usual) - if you have enough rows in the View that it&amp;#39;s causing Query Entity to time-out, a dropdown containing all of those values will be slow and nearly useless in terms of User Experience.&lt;/p&gt;
&lt;p&gt;How many rows are in the view?&amp;nbsp; Does the query work OK if you set the batchSize to (1, 10, 100, etc?) instead of -1 (at least to test whether that&amp;#39;s the issue)?&amp;nbsp; It would be at least helpful if you confirm for us when/whether the query works when different conditions are present.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147747?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 14:06:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:120eb517-498b-4405-b9ea-d59c2efea573</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Agreed with Stefan - there has to be some limit, right? What if you had 1 million values - surely you wouldn&amp;#39;t want to load all of those values into a dropdown? Usually a dropdown is good within the dozens to low hundreds - if you have more than that, either using &lt;a href="https://docs.appian.com/suite/help/latest/recipe-configure-cascading-dropdowns.html"&gt;cascading dropdowns&lt;/a&gt; or a picker is a better approach.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147745?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:41:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:93647bcf-35c5-45f1-99d0-54951b5ed14e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry, to say that, but no, you don&amp;#39;t. Putting such a large number of items in a drop down does not result in a great UX. I suggest to use a picker field instead.&lt;/p&gt;
&lt;p&gt;And then, in that constant, I see the letter &amp;quot;V&amp;quot;. Does this indicate that you try to query a database view? Views are notoriously known for bad performance. If you need to use this view, you will have to find a way to speed it up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147744?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:32:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:701ee1fe-3e33-4a80-8021-56ac3eaf8191</guid><dc:creator>Swapnil Kharate</dc:creator><description>&lt;p style="text-align:left;"&gt;Thanks Stefen for suggestion. Can you also suggest how we can resolve this issue? The values queries using this expression is going to be used for a drop down. So, I&amp;#39;m going to need it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147742?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:30:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5f5745d8-3ea8-43c8-8253-a7d8a0ec4a76</guid><dc:creator>Swapnil Kharate</dc:creator><description>&lt;p&gt;How can we resolve this because I am going to need all this values for a drop down?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147741?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 13:14:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:10c57bc7-9c00-41a7-9702-5c11421ff623</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;Yeah what happens if you don&amp;#39;t use -1 for your batch size? In general I recommend against using -1 for batch size in almost any scenario, because it returns all of your data, which can easily run into timeouts, the circuit breaker, or just poor performance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147736?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:03:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9aedc618-2330-46de-8414-575f9c9268b7</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This error message typically points towards a timeout issue.&lt;/p&gt;
&lt;p&gt;And ...&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="/resized-image/__size/640x480/__key/communityserver-discussions-components-files/15/pastedimage1746187398757v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147731?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 11:15:49 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1cd0744-559d-4809-9021-7a18ac9981d0</guid><dc:creator>Swapnil Kharate</dc:creator><description>&lt;p&gt;a!queryEntity_22r2(&lt;/p&gt;
&lt;p&gt;entity:cons!CP_DSE_V_STATEMENT_TRACKER,&lt;/p&gt;
&lt;p&gt;query:a!query(&lt;/p&gt;
&lt;p&gt;pagingInfo:a!pagingInfo(&lt;/p&gt;
&lt;p&gt;startIndex:1,&lt;/p&gt;
&lt;p&gt;batchSize:-1),&lt;/p&gt;
&lt;p&gt;selection:a!querySelection(&lt;/p&gt;
&lt;p&gt;columns:a!queryColumn(field: &amp;quot;financialInstitutionother&amp;quot;,alias:&amp;quot;FinancialInstitutionOther&amp;quot;,visible:true()),&lt;/p&gt;
&lt;p&gt;logicalExpression:a!queryLogicalExpression(&lt;/p&gt;
&lt;p&gt;ignoreFilterWithEmptyValues:true(),&lt;/p&gt;
&lt;p&gt;filters:{a!queryFilter(&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;field: &amp;quot;firmId&amp;quot;,&lt;/p&gt;
&lt;p&gt;operator:&amp;quot;=&amp;quot;,&lt;/p&gt;
&lt;p&gt;value:-1)&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;)))&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Facing an issue regarding queryentity in expression rule</title><link>https://community.appian.com/thread/147730?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 11:06:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ddebf7d-d95f-4bb8-98e7-b48423b88c63</guid><dc:creator>gayatria0439</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;nbsp;, can you share your code. So that will try to tell and resolve your issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>