sohnem2

Problem with queryFeatures in firefox/chrome?

Discussion created by sohnem2 on Dec 12, 2013
Latest reply on Dec 12, 2013 by SRoberts
I keep getting errors in calling queryFeatures.

            var query = new esri.tasks.Query();
            query.outFields = outfieldsList;
            buildWhereClause();
            if (whereClause) {
                query.where = whereClause;
            }
            if (geometry) {
                query.returnGeometry = true;
                query.geometry = geometry;
                query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
                query.outSpatialReference = featureLayer.spatialReference;
            }

           featureLayer.queryFeatures(query, function (featureSet) {

           }, function (e) {
                alert(e.message);
            });

Unable to load http://10.8.11.30:6080/arcgis/rest/services/Wells/MapServer/0/query?f=json&where=U_SONEDW%3E0.0&returnGeometry=true&spatialRel=esriSpatialRelIntersects&outFields=UWI%2CWELLBORE_N%2CTOTAL_DOCU%2CTOTAL_WELL... status: 0
(I abbreviate the outFields list with '...')

But this happens only with firefox and chrome.  Not IE (using IE 11).
It only happens when the whereClause = 'U_SONEDW>=0.0', and only on the second subsequent times (not the first time).
I.e. if I change the whereClause to something else then it seems to go through.
And only when deployed to II7 web server.  Not in VS2012 development web server.

Also another funny thing is sometimes it just magically works...

Outcomes