<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ArcGIS Server 10.2 MapService Query with returnDistinctValues returns 0 Records in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-10-2-mapservice-query-with/m-p/148096#M5907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a map service that I am trying to return distinct values on using a query that utilizes greater than / less than operators. My first query appears as follows, and when executed, returns records.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60560_ags_query2.png"&gt;&lt;IMG alt="ags_query2.png" class="image-2 jive-image" height="900" src="https://community.esri.com/legacyfs/online/60560_ags_query2.png" style="height: auto;" width="531" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Executing the same query with returnDistinctValues set to true returns 0 records.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60561_ags_query1.png"&gt;&lt;IMG alt="ags_query1.png" class="image-3 jive-image" height="899" src="https://community.esri.com/legacyfs/online/60561_ags_query1.png" style="height: auto;" width="491" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replacing the second part of the query with "1=1" also returns records&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60562_ags_query3.png"&gt;&lt;IMG alt="ags_query3.png" class="jive-image image-4" height="900" src="https://community.esri.com/legacyfs/online/60562_ags_query3.png" style="height: auto;" width="497" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is, what is it about the second part of my query that would cause the map service to return no records? It seems to be a problem with less than symbol but I have no way to confirm that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 14:21:29 GMT</pubDate>
    <dc:creator>jamesmuir</dc:creator>
    <dc:date>2015-02-10T14:21:29Z</dc:date>
    <item>
      <title>ArcGIS Server 10.2 MapService Query with returnDistinctValues returns 0 Records</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-10-2-mapservice-query-with/m-p/148096#M5907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have a map service that I am trying to return distinct values on using a query that utilizes greater than / less than operators. My first query appears as follows, and when executed, returns records.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60560_ags_query2.png"&gt;&lt;IMG alt="ags_query2.png" class="image-2 jive-image" height="900" src="https://community.esri.com/legacyfs/online/60560_ags_query2.png" style="height: auto;" width="531" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Executing the same query with returnDistinctValues set to true returns 0 records.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60561_ags_query1.png"&gt;&lt;IMG alt="ags_query1.png" class="image-3 jive-image" height="899" src="https://community.esri.com/legacyfs/online/60561_ags_query1.png" style="height: auto;" width="491" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replacing the second part of the query with "1=1" also returns records&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/60562_ags_query3.png"&gt;&lt;IMG alt="ags_query3.png" class="jive-image image-4" height="900" src="https://community.esri.com/legacyfs/online/60562_ags_query3.png" style="height: auto;" width="497" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the question is, what is it about the second part of my query that would cause the map service to return no records? It seems to be a problem with less than symbol but I have no way to confirm that.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 14:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-10-2-mapservice-query-with/m-p/148096#M5907</guid>
      <dc:creator>jamesmuir</dc:creator>
      <dc:date>2015-02-10T14:21:29Z</dc:date>
    </item>
  </channel>
</rss>

