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

1551
2
06-11-2013 03:02 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
2 Replies
CarlosColón-Maldonado
Occasional Contributor III
Well, I don't think you'll find an answer on this forum. The API's are not compatible or interchangeable. I noticed you've already posted the question on the right forum and gotten no answers, yet.

Did you look at this post on the ArcObjects SDKs forum? This post also mentions the use of the String.Format method to avoid concatenation complexities.

Good luck!
0 Kudos
pavan_kumarmuttigi
New Contributor
Hi Carlos Colón-Maldonado,

Thanks a lot for your help.
0 Kudos