<?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: 'updates' parameter is valid, Geometry update is not allowed. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-valid-geometry-update-is-not/m-p/1019306#M5464</link>
    <description>&lt;P&gt;I may have figured out the cause.&amp;nbsp; In the hosted feature service Items page in AGOL, I found a geometry update option in "Settings....Editing...What kind of editing allowed?"&amp;nbsp; Under 'Update,' there is a choice to include 'Attributes and geometry.'&amp;nbsp; I clicked on "Manage geometry updates" and discovered the feature layer in the service was not selected.&amp;nbsp; I clicked the layer on. Saved.&amp;nbsp; Refreshed, ran the script and no errors.&amp;nbsp; I refreshed the application in the browser and could see the vacant space counts were updating each minute and the script was now working as expected.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 22:28:53 GMT</pubDate>
    <dc:creator>JayHodny</dc:creator>
    <dc:date>2021-01-22T22:28:53Z</dc:date>
    <item>
      <title>'updates' parameter is valid, Geometry update is not allowed.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-valid-geometry-update-is-not/m-p/1019160#M5462</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; We have a python script running in Windows Task Scheduler.&amp;nbsp; The script retrieves vacant parking space counts from a vendor's database through their API.&amp;nbsp; The counts are updated every minute in our editable feature service, displaying the current number of vacant parking spaces in a couple of municipal parking lots.&amp;nbsp; In the past few days, I noticed the counts were not updating.&amp;nbsp; The script has been working since November 2019, though I don't know when it stopped.&amp;nbsp; We have not edited the script since placing it into production in November 2019.&amp;nbsp; ArcGIS Pro is installed on the server, we updated Pro to v 2.7 today.&amp;nbsp;&amp;nbsp;For troubleshooting, I ran the script manually, and noticed the following error.&amp;nbsp; I am a Python novice.&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\PythonScripts\free_spots_VM_testing.py", line 58, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; update_result = ports_flayer.edit_features(&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;updates=[sfo_edit&lt;/FONT&gt;&lt;/STRONG&gt;])&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\layer.py", line 2393, in edit_features&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self._con.post(path=edit_url, postdata=params)#, token=self._token)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 720, in post&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; force_bytes=kwargs.pop('force_bytes', False))&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 514, in _handle_response&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._handle_json_error(data['error'], errorcode)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 536, in _handle_json_error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception(errormessage)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Exception: Cannot perform operation. Invalid operation parameters.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;This operation is not supported.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;'updates' parameter is invalid&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;Geometry update not allowed.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;(Error Code: 400)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 16:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-valid-geometry-update-is-not/m-p/1019160#M5462</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2021-01-22T16:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: 'updates' parameter is valid, Geometry update is not allowed.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-valid-geometry-update-is-not/m-p/1019306#M5464</link>
      <description>&lt;P&gt;I may have figured out the cause.&amp;nbsp; In the hosted feature service Items page in AGOL, I found a geometry update option in "Settings....Editing...What kind of editing allowed?"&amp;nbsp; Under 'Update,' there is a choice to include 'Attributes and geometry.'&amp;nbsp; I clicked on "Manage geometry updates" and discovered the feature layer in the service was not selected.&amp;nbsp; I clicked the layer on. Saved.&amp;nbsp; Refreshed, ran the script and no errors.&amp;nbsp; I refreshed the application in the browser and could see the vacant space counts were updating each minute and the script was now working as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 22:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/updates-parameter-is-valid-geometry-update-is-not/m-p/1019306#M5464</guid>
      <dc:creator>JayHodny</dc:creator>
      <dc:date>2021-01-22T22:28:53Z</dc:date>
    </item>
  </channel>
</rss>

