<?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 GeoJSON output returns 400 error when layer has M values in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geojson-output-returns-400-error-when-layer-has-m/m-p/1175281#M4135</link>
    <description>&lt;P&gt;We had trouble exporting data from an ArcGIS service layer to GeoJSON format. Other formats (JSON, etc.) worked fine. The response was a generic 400 error ("Failed to execute query"). It was puzzling because other services on the same server returned GeoJSON just fine.&lt;/P&gt;&lt;P&gt;After a lot of looking at it, we discovered that the difference was that the layer's "HasM" attribute was true. We removed the M values from the data, and now the GeoJSON works. Sounds like a bug to me.&lt;/P&gt;&lt;P&gt;Since the layer now works I can't share the error, but here's a query on a layer where I found another user had posted a question with a related problem which has M values and shows the behavior:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis11.services.ncdot.gov/arcgis/rest/services/NCDOT_STIP/MapServer/1/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=geojson" target="_blank" rel="noopener"&gt;https://gis11.services.ncdot.gov/arcgis/rest/services/NCDOT_STIP/MapServer/1/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=geojson&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 18:57:38 GMT</pubDate>
    <dc:creator>BryanBaker</dc:creator>
    <dc:date>2022-05-18T18:57:38Z</dc:date>
    <item>
      <title>GeoJSON output returns 400 error when layer has M values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geojson-output-returns-400-error-when-layer-has-m/m-p/1175281#M4135</link>
      <description>&lt;P&gt;We had trouble exporting data from an ArcGIS service layer to GeoJSON format. Other formats (JSON, etc.) worked fine. The response was a generic 400 error ("Failed to execute query"). It was puzzling because other services on the same server returned GeoJSON just fine.&lt;/P&gt;&lt;P&gt;After a lot of looking at it, we discovered that the difference was that the layer's "HasM" attribute was true. We removed the M values from the data, and now the GeoJSON works. Sounds like a bug to me.&lt;/P&gt;&lt;P&gt;Since the layer now works I can't share the error, but here's a query on a layer where I found another user had posted a question with a related problem which has M values and shows the behavior:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis11.services.ncdot.gov/arcgis/rest/services/NCDOT_STIP/MapServer/1/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=geojson" target="_blank" rel="noopener"&gt;https://gis11.services.ncdot.gov/arcgis/rest/services/NCDOT_STIP/MapServer/1/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;f=geojson&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 18:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/geojson-output-returns-400-error-when-layer-has-m/m-p/1175281#M4135</guid>
      <dc:creator>BryanBaker</dc:creator>
      <dc:date>2022-05-18T18:57:38Z</dc:date>
    </item>
  </channel>
</rss>

