Query results not returned

744
2
11-29-2012 05:13 PM
IanHamilton
New Contributor
Hi,

I have an odd situation where query results are not returned consistently in IE. The app works fine in Firefox.
I enter a string in an html "input" and do a query for that attribute value.
In IE I have to press return 3 or 4 times before the results are returned to a grid.
Some times there is no error but nothing is retuned
Sometimes I get the geometry but the grid is not filled
Sometimes I get an object error - the message is #error 1, description is empty
ON the last attempt the query returns correctly and the grid is filled.

I can supply code but I thought it might be useful to get some higher level comments as to what may be happening.

All the query and task variables are in the main js page, the query code is in a separate js file.

Again, this all works fine in Firefox,

Any suggestions gratefully received,

Ian
0 Kudos
2 Replies
IanHamilton
New Contributor
Sorry a couple of updates, the error code is 400 , unable to complete operation - when it gives an error.
I just noticed another thread
http://forums.arcgis.com/threads/70729-QueryTask-Error-Code-400-Message-Unable-to-complete-operation...

which gives similar results. I have just upgraded to Serer 10.1 Sp1. I don't think I was getting an error before the upv=grade but I can't be certain I tested on IE.

Is this an introduced bug in SP1?

Fro the above thread, a proposed solution is to use a POST.
How would I do this for the Query operation

Thanks, Ian
0 Kudos
IanHamilton
New Contributor
I am able to workaround this bug by calling 2 queries one after the other, the second being the real one! This works consistently in IE and Firefox.
0 Kudos