Automation Exception while using the order by clause with the query filter

542
1
06-11-2013 03:01 AM
pavan_kumarmuttigi
New Contributor
Hi,

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.
BTW, I am working using the ArcObjects API for Java.

I am getting the following Automation Exception: Item Not Found in this Collection.

I am using the query to the queryfilter  like as follows.

String query = ST_ID in (234,456) order by ST_ID asc

IQueryFilter  queryFilter = new QueryFilter();
queryFilter.setWhereClause(query);

I am getting the above mentioned AutomationException.Can anyone please help me in resolving the issue?
Actually I do have a doubt like does the order by clause is supported in ArcObjects?

Thanks in Advance.
0 Kudos
1 Reply
NeilClemmons
Regular Contributor III
Use the IQueryFilterDefinition interface to set the ORDER BY clause.
0 Kudos