<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automation Exception while using the order by clause with the query filter in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353984#M9300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil Clemmons,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You for your information on postfix clause. Is there a way like to implement the order by clause in the file geodatabase approach.Please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2013 06:36:45 GMT</pubDate>
    <dc:creator>pavan_kumarmuttigi</dc:creator>
    <dc:date>2013-06-13T06:36:45Z</dc:date>
    <item>
      <title>Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353980#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one please help me in resolving the issue with the query filter which I am getting when trying the query with order by clause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am working using the ArcObjects API for Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting the following Automation Exception: Item Not Found in this Collection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the query to the queryfilter like as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String query = ST_ID in (234,456) order by ST_ID asc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IQueryFilter queryFilter = new QueryFilter();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;queryFilter.setWhereClause(query);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting the above mentioned AutomationException.Can anyone please help me in resolving the issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually I do have a doubt like does the order by clause is supported in ArcObjects?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 10:03:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353980#M9296</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-06-11T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353981#M9297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;'Order by' you need use PostfixClause &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.SubFields = "NAME, ADDRESS";
queryFilter.WhereClause = "TYPE = 'Restaurant'";
IQueryFilterDefinition queryFilterDef = (IQueryFilterDefinition)queryFilter;
queryFilterDef.PostfixClause = "ORDER BY NAME";


&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353981#M9297</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2021-12-11T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353982#M9298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Domenico Ciavarella,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually tried with code snippet you posted for the case of using order by clause for querfilter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It didn't worked for me. I am getting the same automation exception as: Item&amp;nbsp; not found in this collection. in 'DAO.Fields'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering that is order by clause&amp;nbsp; supported with file geodatabase?.Especially with ArcGIS 10.0 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 06:56:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353982#M9298</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-06-12T06:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353983#M9299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The documentation for the PostfixClause property states that the property is not supported for file geodatabases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 13:58:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353983#M9299</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-06-12T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353984#M9300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil Clemmons,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You for your information on postfix clause. Is there a way like to implement the order by clause in the file geodatabase approach.Please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 06:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353984#M9300</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-06-13T06:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353985#M9301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, use the ITableSort interface to get a cursor sorted on the field you specify.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 12:04:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353985#M9301</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-06-13T12:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353986#M9302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil Clemmons,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you Please send me the snippet on how to use the ItableSort interface to get work the Order By clause over the File GeoDatabase approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353986#M9302</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-06-13T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353987#M9303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's in the developer help topic for the ITableSort interface.&amp;nbsp; All you have to do is look it up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 14:52:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353987#M9303</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-06-13T14:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Automation Exception while using the order by clause with the query filter</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353988#M9304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Neil Clemmons,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help and support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It helps me a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks once again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 07:07:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/automation-exception-while-using-the-order-by/m-p/353988#M9304</guid>
      <dc:creator>pavan_kumarmuttigi</dc:creator>
      <dc:date>2013-06-17T07:07:00Z</dc:date>
    </item>
  </channel>
</rss>

