<?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 Hosted Feature Layer vs Map Service empty query results in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-feature-layer-vs-map-service-empty-query/m-p/1545586#M40680</link>
    <description>&lt;P&gt;My organization manages web applications drawing from standalone ArcGIS Server Map Layers.&amp;nbsp; Often we would like to move those layers into ArcGIS Online as hosted feature layers.&amp;nbsp; However we sometimes find incompatibles in the query API that mean the applications must be changed to make it work.&lt;/P&gt;&lt;P&gt;For this example when a MapServer is queried and the results are empty, we still get back the fields and aliases and good stuff for showing a small table that says "nothing found for these fields".&lt;BR /&gt;&lt;A href="https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)" target="_blank" rel="noopener"&gt;https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, an ArcGIS Online hosted feature layer when presented with the same exact query, just returns nuthin.&lt;BR /&gt;&lt;A href="https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/ATTAINS_Assessment/FeatureServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)" target="_blank" rel="noopener"&gt;https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/ATTAINS_Assessment/FeatureServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I suppose there is a design question here, is there an intention that MapServer and FeatureServer queries return the same format of results?&amp;nbsp; Or is the current "almost parity" just a coincidence?&amp;nbsp; that will gradually evolve into two unrelated products?&amp;nbsp; Or could hosted feature layers have a compatibility switch to make them match the old MapServer results?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Oct 2024 14:04:58 GMT</pubDate>
    <dc:creator>PaulDziemiela2</dc:creator>
    <dc:date>2024-10-04T14:04:58Z</dc:date>
    <item>
      <title>Hosted Feature Layer vs Map Service empty query results</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-feature-layer-vs-map-service-empty-query/m-p/1545586#M40680</link>
      <description>&lt;P&gt;My organization manages web applications drawing from standalone ArcGIS Server Map Layers.&amp;nbsp; Often we would like to move those layers into ArcGIS Online as hosted feature layers.&amp;nbsp; However we sometimes find incompatibles in the query API that mean the applications must be changed to make it work.&lt;/P&gt;&lt;P&gt;For this example when a MapServer is queried and the results are empty, we still get back the fields and aliases and good stuff for showing a small table that says "nothing found for these fields".&lt;BR /&gt;&lt;A href="https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)" target="_blank" rel="noopener"&gt;https://gispub.epa.gov/arcgis/rest/services/OW/ATTAINS_Assessment/MapServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, an ArcGIS Online hosted feature layer when presented with the same exact query, just returns nuthin.&lt;BR /&gt;&lt;A href="https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/ATTAINS_Assessment/FeatureServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)" target="_blank" rel="noopener"&gt;https://services.arcgis.com/cJ9YHowT8TU7DUyn/arcgis/rest/services/ATTAINS_Assessment/FeatureServer/0/query?f=json&amp;amp;outFields=*&amp;amp;where=assessmentunitidentifier%20in%20(%27foo%27)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I suppose there is a design question here, is there an intention that MapServer and FeatureServer queries return the same format of results?&amp;nbsp; Or is the current "almost parity" just a coincidence?&amp;nbsp; that will gradually evolve into two unrelated products?&amp;nbsp; Or could hosted feature layers have a compatibility switch to make them match the old MapServer results?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 14:04:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/hosted-feature-layer-vs-map-service-empty-query/m-p/1545586#M40680</guid>
      <dc:creator>PaulDziemiela2</dc:creator>
      <dc:date>2024-10-04T14:04:58Z</dc:date>
    </item>
  </channel>
</rss>

