<?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 Re: Issue with geometry not being created with /addFeatures in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296941#M1465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having a similar issue.&amp;nbsp; A few times week, features appear to be created.&amp;nbsp; We get a Success response, we can query the object and see the geometry, but a little while later the feature is not really added to the geodatabase. &amp;nbsp; We are not even getting a null geometry.&amp;nbsp; Have you found a solution to this problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jul 2019 14:35:46 GMT</pubDate>
    <dc:creator>JENNIFERHIGGS</dc:creator>
    <dc:date>2019-07-23T14:35:46Z</dc:date>
    <item>
      <title>Issue with geometry not being created with /addFeatures</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296939#M1463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a ArcGIS REST API learner driver at the moment, so please be gentle!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the REST API, I'm attempting to create features in a feature service using the /addFeatures option. The POST request is being made via Python, using the requests library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using is executing successfully, and I am getting a Success = True response from the call, but the geometry is not being created in the feature service - rather, a record is being created with the correct attributes, but null geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of the payload being sent to the feature service is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{'geometry': u'{"rings":[[[2821343.5468000025,2494844.3574000001],[2822216.6736000031,2489208.7210999988],[2822216.6736000031,2489169.0335000008],[2814914.1589000002,2489314.5546999983],[2814821.5546000004,2494831.1281999983],[2821343.5468000025,2494844.3574000001]]],"spatialReference":{"wkid":102171,"latestWkid":3111}}', 'attributes': {'GLOBALID_TEXT': '{4986E78C-60AD-44DD-A36F-58E5B8630948}', 'FIRE_OBS_TYPE_PY': u'CurrBurntArea', 'INCIDENT_NAME': u'21 WALKER ST', 'OBS_CREATEDATE': 1504788222000L}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The success message being returned is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{"addResults":[{"objectId":1457,"globalId":"5DB01C2C-FEBE-4E31-B714-8D10744C2517","success":true}]}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JSON geometry object being used in the payload is being sourced from an fGDB feature class, using a SearchCursor and the 'SHAPE@JSON' field name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having checked some of the help documentation, I note that the geometry JSON doesn't explicitly reference hasM or hasZ, which is included in the docs, but given that the success message gets returned I am unsure if this is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone with a better understanding of REST and JSON than me tell me why I am having the issue I am?&lt;BR /&gt;&lt;BR /&gt;Many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 07:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296939#M1463</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2018-06-19T07:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with geometry not being created with /addFeatures</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296940#M1464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if related but a few things you could try...&lt;/P&gt;&lt;P&gt;Noticed the input JSON has a mix of single quotes and double quotes. Technically JSON doesn't support single quotes (at this version of JSON spec) - try changing all to double quotes.&lt;/P&gt;&lt;P&gt;As well, the spatial reference specification has both a &lt;EM&gt;wkid&lt;/EM&gt; and &lt;EM&gt;latestWkid&lt;/EM&gt;. Not sure if both are supported during addFeatures. Possibly try with just &lt;EM&gt;wkid&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 20:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296940#M1464</guid>
      <dc:creator>BryanMc</dc:creator>
      <dc:date>2019-02-04T20:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with geometry not being created with /addFeatures</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296941#M1465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having a similar issue.&amp;nbsp; A few times week, features appear to be created.&amp;nbsp; We get a Success response, we can query the object and see the geometry, but a little while later the feature is not really added to the geodatabase. &amp;nbsp; We are not even getting a null geometry.&amp;nbsp; Have you found a solution to this problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jul 2019 14:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296941#M1465</guid>
      <dc:creator>JENNIFERHIGGS</dc:creator>
      <dc:date>2019-07-23T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with geometry not being created with /addFeatures</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296942#M1466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone found a solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 07:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/issue-with-geometry-not-being-created-with/m-p/296942#M1466</guid>
      <dc:creator>MohamadMousheimish1</dc:creator>
      <dc:date>2019-12-18T07:56:24Z</dc:date>
    </item>
  </channel>
</rss>

