<?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: How do I make a hosted feature layer editable with the ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1127625#M6926</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I run the update_definition on my hosted feature layer published using file geodatabase. I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;flc.manager.update_definition({'capabilities':'Create,Delete,Query,Update,Editing'})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarthakTewari24_0-1640011407323.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30058i326B103222D9E675/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarthakTewari24_0-1640011407323.png" alt="SarthakTewari24_0-1640011407323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 14:44:56 GMT</pubDate>
    <dc:creator>SarthakTewari24</dc:creator>
    <dc:date>2021-12-20T14:44:56Z</dc:date>
    <item>
      <title>How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813173#M2542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm writing a script to upload a FGDB to ArcGIS Online, view it in a web map, and edit it. Using the API for Python. I've figured everything out except how to turn on editing (create, update, delete, etc). Anyone have any idea how to do that?&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813173#M2542</guid>
      <dc:creator>GregMcNamee</dc:creator>
      <dc:date>2017-08-01T17:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813174#M2543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To turn on editing, you need to access the published layer as a&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FeatureLayerColleciton object in Python and perform an `update_definition()` operation as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; FeatureLayerCollection
fortune_fl_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title:your_feature_layer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Feature Layer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
flc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FeatureLayerCollection&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fortune_fl_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
flc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;manager&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;update_definition&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'capabilities'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Create,Delete,Query,Update,Editing,Extract'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We gave a talk at the UC about this, you can find the notebook here:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/blob/master/talks/uc2017/ArcGIS%20Python%20API%20-%20Advanced%20Scripting/features/accessing_and_visualizing_feature_data.ipynb" rel="nofollow noopener noreferrer" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/blob/master/talks/uc2017/ArcGIS%20Python%20API%20-%20Advanced%20Scripting/features/accessing_and_visualizing_feature_data.ipynb&lt;/A&gt;&amp;nbsp;If you scroll down to the part that talks about '&lt;STRONG&gt;Editing features&lt;/STRONG&gt;' you can find the workflow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:34:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813174#M2543</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813175#M2544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I had just read it here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" title="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/"&gt;Updating feature layer properties | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/813175#M2544</guid>
      <dc:creator>GregMcNamee</dc:creator>
      <dc:date>2017-08-01T17:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1127625#M6926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I run the update_definition on my hosted feature layer published using file geodatabase. I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code -&amp;nbsp;&lt;/P&gt;&lt;P&gt;flc.manager.update_definition({'capabilities':'Create,Delete,Query,Update,Editing'})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SarthakTewari24_0-1640011407323.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/30058i326B103222D9E675/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SarthakTewari24_0-1640011407323.png" alt="SarthakTewari24_0-1640011407323.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 14:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1127625#M6926</guid>
      <dc:creator>SarthakTewari24</dc:creator>
      <dc:date>2021-12-20T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1262598#M8423</link>
      <description>&lt;P&gt;Same error here, using ArcGIS API for Python 2.1.0.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use the code below in a FeatureClass enabled for editing directly in ArcGIS Online (via the user interface), it responds "capabilities": "Create,Delete,Query,Update,Editing", but if you turn off and try&amp;nbsp;fl.manager.update_definition(, same error of&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/437126"&gt;@SarthakTewari24&lt;/a&gt;&amp;nbsp; (in &amp;lt;module&amp;gt; fl.manager.update_definition({'capabilities': 'Create,Delete,Query,Update,Editing'})&amp;nbsp;Exception: Unable to update feature service definition.&lt;BR /&gt;Invalid definition for 'Capabilities'.&lt;BR /&gt;Invalid definition for System.String&lt;BR /&gt;(Error Code: 400).&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;props = fl.properties&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(props)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 Feb 2023 17:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1262598#M8423</guid>
      <dc:creator>ceredajunior_UnB</dc:creator>
      <dc:date>2023-02-28T17:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1306436#M8852</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; I get this error too&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; i can update a definition &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; fl&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;manager&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;update_definition&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;capabilities&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Query&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;})&lt;/SPAN&gt; &lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; but &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; I add &lt;/SPAN&gt;&lt;SPAN&gt;any&lt;/SPAN&gt;&lt;SPAN&gt; more capabilities i get the same error&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;m trying to add these capabilities - &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Create,Delete,Query,Update,Editing,Sync&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt; which &lt;/SPAN&gt;&lt;SPAN&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; the exact string that the feature service had before i overwrote the data &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; it&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 07 Jul 2023 04:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1306436#M8852</guid>
      <dc:creator>MartinPeak</dc:creator>
      <dc:date>2023-07-07T04:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354323#M9334</link>
      <description>&lt;P&gt;I am also getting the same error when trying to update the capabilities to include&amp;nbsp;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Create,Delete,Query,Update,Editing,Sync&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I followed the steps outlined in the following:&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/blob/master/guide/04-feature-data-and-analysis/updating-feature-layer-properties.ipynb" target="_blank"&gt;https://github.com/Esri/arcgis-python-api/blob/master/guide/04-feature-data-and-analysis/updating-feature-layer-properties.ipynb&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cannot figure out why this error keeps popping up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any word on a solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 20:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354323#M9334</guid>
      <dc:creator>EmmaSchultz1</dc:creator>
      <dc:date>2023-11-28T20:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354363#M9335</link>
      <description>&lt;P&gt;I would like to add that I do not get the error when passing a single parameter into the 'Capabilities' argument. For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&amp;nbsp;&lt;/P&gt;&lt;P&gt;update_dict2 = {"capabilities": "Query",&lt;BR /&gt;"syncEnabled": False}&lt;BR /&gt;test_flc.manager.update_definition(update_dict2)&lt;/P&gt;&lt;P&gt;This does not work:&amp;nbsp;&lt;/P&gt;&lt;P&gt;update_dict3 = {"capabilities": "Create,Delete,Query,Update,Editing",&lt;BR /&gt;"syncEnabled": False}&lt;BR /&gt;test_flc.manager.update_definition(update_dict3)&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 21:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354363#M9335</guid>
      <dc:creator>EmmaSchultz1</dc:creator>
      <dc:date>2023-11-28T21:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make a hosted feature layer editable with the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354703#M9337</link>
      <description>&lt;P&gt;I figured out what the issue was with my script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Background: I have a script that overwrites a hosted feature layer from a .xlsx file. After overwriting, the edit capabilities switch back to the default where the only enabled capability is "Query". Therefore, setting the capabilities back to include&amp;nbsp;&lt;SPAN&gt;"Create,Delete,Query,Update,Editing" is needed. I kept on getting the following error:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exception: Unable to update feature service definition.&lt;BR /&gt;Invalid definition for 'Capabilities'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The solution, is to include the "&lt;/SPAN&gt;hasStaticData" property along with the capabilities. When a layer is set to editable, the&amp;nbsp;hasStaticData property sets to false. So after overwriting since this property is then set to true, I needed to include this in my update dictionary to make the layer editable again:&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Update capabilities along with the hasStatisData parameter set to true&lt;BR /&gt;update_dict3 = {"hasStaticData":False,"capabilities": "Create,Delete,Query,Update,Editing"}&lt;BR /&gt;test_flc.manager.update_definition(update_dict3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this can help someone out in the future!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 17:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-make-a-hosted-feature-layer-editable-with/m-p/1354703#M9337</guid>
      <dc:creator>EmmaSchultz1</dc:creator>
      <dc:date>2023-11-29T17:08:28Z</dc:date>
    </item>
  </channel>
</rss>

