Hi everyone,it has been a week that I have this problem.I haven't changed anything on my code but 1 week ago I received a "'where' parameter is invalid" error when this query is executed on a feature service (hosted on Arcgis online):var statDef = new StatisticDefinition();
statDef.statisticType = "sum";
statDef.onStatisticField = "Area";
statDef.outStatisticFieldName = "Tot Area";
var query = new Query();
query.returnGeometry = false;
query.where = "Area>0";
query.outFields = ["Area"];
query.outStatistics = [ statDef ];
query.groupByFieldsForStatistics = ["YearEstabl", "TypeName"];
query.orderByFields = ["YearEstabl", "TypeName"];
var qt = new QueryTask("http://services1.arcgis.com/Mpa25zPNMAT08GQg/ArcGIS/rest/services/AllPropertiesEstablished/FeatureServer/0");
qt.execute(query, function(result){
...
}
});
I am referencing to //js.arcgis.com/3.6/Any ideas?Thanks in advance!