Hi Group,I want to perform a query task against a feature layer in ArcGISDynamic Layer which contains 36527 features .But When I query the feature layer and count the fatures length ,I see only 1000.My question is does query returns a maximum of 1000 or is it possible that the map REST service layer is set to 1000 records .Because I noticed the same query on map service from the URL returns just 1000.Here is the code related the query .The queryTask.executeForCount is printing 36527 but I see in only 1000 features after query task exceuted.I need the solution very soon.Could anyone help me understand what's going on here.var layerId = getlayerIdByName("primary_dataset","Active Road Crossings"); var queryTask = new esri.tasks.QueryTask(primaryMapUrl + "/"+layerId); var query = new esri.tasks.Query(); query.returnGeometry = false; query.outFields = ["OBJECTID","ENG_XING"]; query.where = "1=1" ; queryTask.executeForCount(query,function(count){ alert(count); },function(error){ console.log(error); }); queryTask.execute(query,populateDotXingNumbers);