<?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: Feature Layer edit_features Succeeds but Doesn't Add Attributes in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1613175#M11361</link>
    <description>&lt;P&gt;This is nearly a year later, but just wanted to let you know you saved me a lot of time with this answer. Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2025 09:20:39 GMT</pubDate>
    <dc:creator>JMCM</dc:creator>
    <dc:date>2025-05-09T09:20:39Z</dc:date>
    <item>
      <title>Feature Layer edit_features Succeeds but Doesn't Add Attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393276#M9734</link>
      <description>&lt;P&gt;I'm trying to use FeatureLayer.edit_feautures(adds=) to add data to a hosted feature layer:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;PRE&gt;gis = GIS(&lt;SPAN&gt;url&lt;/SPAN&gt;=&lt;SPAN&gt;'https://my.portal.url/portal'&lt;/SPAN&gt;, &lt;SPAN&gt;username&lt;/SPAN&gt;=&lt;SPAN&gt;'my_user'&lt;/SPAN&gt;, &lt;SPAN&gt;password&lt;/SPAN&gt;=&lt;SPAN&gt;'my_password'&lt;/SPAN&gt;)&lt;BR /&gt;my_fl = gis.content.search(item_id)[&lt;SPAN&gt;0&lt;/SPAN&gt;].layers[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;row = {&lt;SPAN&gt;"geometry"&lt;/SPAN&gt;: station_pt,&lt;BR /&gt;       &lt;SPAN&gt;"attributes"&lt;/SPAN&gt;: {&lt;SPAN&gt;"Site"&lt;/SPAN&gt;: station_name}}&lt;BR /&gt;update_table = my_fl.edit_features(&lt;SPAN&gt;adds&lt;/SPAN&gt;=[row])&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;with the contents of row being:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;{'geometry': {'x': -9692252.2125, 'y': 4674393.7667, 'spatialReference': {'wkid': 102100, 'latestWkid': 3857}}, 'attributes': {'Site': 'Washington_E'}}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The addResults reports success:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;{'addResults': [{'success': True, 'objectId': 186}], 'updateResults': [], 'deleteResults': []}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but when I look at the featureLayer, I only see the geometry and not the attribute data.&lt;/P&gt;&lt;P&gt;I saw this post: &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/edit-features-says-it-succeeds-but-doesn-t/m-p/1321922/highlight/true#M8952" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/edit-features-says-it-succeeds-but-doesn-t/m-p/1321922/highlight/true#M8952&lt;/A&gt;&amp;nbsp;and I've checked that the Site field in the service details is text, 255:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;site&lt;I&gt;( modelName: site, nullable: true, editable: true, defaultValue: null, length: 255, alias: Site, type: esriFieldTypeString&amp;nbsp;&lt;/I&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I'm stumped as to what's going wrong. Any ideas how to make my edits go through?&lt;/P&gt;&lt;P&gt;edit: I should add, the Feature Layer is hosted using ArcGIS Enterprise (Server/Portal/DataStore) 11.2, on Windows.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 17:07:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393276#M9734</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2024-03-08T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer edit_features Succeeds but Doesn't Add Attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393294#M9735</link>
      <description>&lt;P&gt;"Site" should be "site". When you update a feature, always use the &lt;STRONG&gt;modelName&lt;/STRONG&gt;, as that is the "real" field name. When you add features, you can include all kinds of fields and values, and if those fields aren't present in the destination layer, they're just ignored.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 17:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393294#M9735</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-03-08T17:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer edit_features Succeeds but Doesn't Add Attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393347#M9736</link>
      <description>&lt;P&gt;That works! Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 18:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1393347#M9736</guid>
      <dc:creator>BenRomlein</dc:creator>
      <dc:date>2024-03-08T18:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer edit_features Succeeds but Doesn't Add Attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1578880#M11090</link>
      <description>&lt;P&gt;This was an amazing answer. I could not find this information anywhere. Thanks for the save late on Friday afternoon. Would have ruined my weekend if I didn't get this.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 00:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1578880#M11090</guid>
      <dc:creator>TimLohnes1</dc:creator>
      <dc:date>2025-01-25T00:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer edit_features Succeeds but Doesn't Add Attributes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1613175#M11361</link>
      <description>&lt;P&gt;This is nearly a year later, but just wanted to let you know you saved me a lot of time with this answer. Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 09:20:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-edit-features-succeeds-but-doesn-t/m-p/1613175#M11361</guid>
      <dc:creator>JMCM</dc:creator>
      <dc:date>2025-05-09T09:20:39Z</dc:date>
    </item>
  </channel>
</rss>

