AnsweredAssumed Answered

returnDistinctValues not returning distinct

Question asked by jamesandrewmuir on Feb 6, 2014
Latest reply on Sep 2, 2014 by DCarroll-esristaff
I am trying to perform a query to return distinct values from my map service running on 10.1. The returned result has 1000 records (the max set in the server) and when i inspect it I am seeing duplicate values. Here is my code.

var queryTask = new esri.tasks.QueryTask(layerServiceUrl);             var query = new esri.tasks.Query();             query.where = "1=1";             query.outFields = [];             query.outFields.push(field);             query.returnDistinctValues = true;


Can someone tell me what I am doing wrong?

Outcomes