<?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: Calls to FeatureLayer.edit_features() succeed, but new features are not saved. in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491025#M10175</link>
    <description>&lt;P&gt;Have you also ruled out any sort of database syncing issues?&lt;/P&gt;&lt;P&gt;I was running an arcpy operation involving UpdateCursor on an Enterprise database recently.&amp;nbsp; Everything looked to be successful, but no values updated.&lt;/P&gt;&lt;P&gt;Until I looked back the next day and all of the values&amp;nbsp;&lt;EM&gt;did&lt;/EM&gt; populate.&amp;nbsp; I thought I was going crazy, so I started doing some testing, and discovered that apparently because of the way our IT department had the database configured, direct/manual edits would go through immediately.&amp;nbsp; But edits queued through UpdateCursor &amp;amp; Editor (the latter is required when an SDE is involved) would disappear into some hidden back-end until the server re-synced every evening around midnight.&lt;/P&gt;&lt;P&gt;Further complicating matters: After the data finally appeared in SDE every next day, the time stamps also always showed the time I ran the code the previous day,&amp;nbsp;&lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; the time that the sync happened, which made it hard to troubleshoot, at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr&lt;BR /&gt;&lt;/STRONG&gt;Run a test, note the time, and then don't touch it for 24 hours.&amp;nbsp; See if the behavior is the same, or if it changed.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2024 21:21:22 GMT</pubDate>
    <dc:creator>MErikReedAugusta</dc:creator>
    <dc:date>2024-06-12T21:21:22Z</dc:date>
    <item>
      <title>Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1490910#M10167</link>
      <description>&lt;P&gt;I'm using GIS 10.3, according to &lt;FONT face="courier new,courier"&gt;arcgis.GIS.version&lt;/FONT&gt;&amp;nbsp;(I know, IT needs to update things).&lt;/P&gt;&lt;P&gt;I've cloned a hosted feature layer in Portal, renamed the clone, and deleted all of its existing features. I'm now trying to use&amp;nbsp;&lt;FONT face="courier new,courier"&gt;FeatureLayer.edit_features(adds=List[Feature]) &lt;/FONT&gt;to populate it.&lt;/P&gt;&lt;P&gt;Specifically - I'm calling the&lt;FONT face="courier new,courier"&gt; FeatureLayer.edit_features()&lt;/FONT&gt; method and passing the &lt;FONT face="courier new,courier"&gt;adds&lt;/FONT&gt; argument a list of&amp;nbsp;&lt;FONT face="courier new,courier"&gt;arcgis.feature.Feature&amp;nbsp;&lt;/FONT&gt;instances.&lt;/P&gt;&lt;P&gt;The returned results are always successful. However - none of the features are saved, and the layer is still empty in Portal.&lt;/P&gt;&lt;P&gt;I've triple checked to make sure I'm editing the correct feature layer, I've checked my user permissions, I've tried turning off change tracking, and nothing's worked. I'm at the end of my rope. Anyone have any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 19:30:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1490910#M10167</guid>
      <dc:creator>rob_d</dc:creator>
      <dc:date>2024-06-12T19:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491006#M10170</link>
      <description>&lt;P&gt;Have you tried with a subset of the data? Like 1-2 features? Seems like a list of Feature objects should work, but I must admit I've only used&amp;nbsp; FeatureSet objects (and raw json to a much lesser extent). Unfortunately, the error handling is not great with that function so it can be hard to pinpoint the cause of failure. Sometimes it can be that a length of a string exceeds the limit allowed by a field or an issue with data types.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491006#M10170</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-06-12T20:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491010#M10171</link>
      <description>&lt;P&gt;I have - I use batches of ~250 features, and it's always the same.&lt;/P&gt;&lt;P&gt;The problem is, I'm not getting any informative error messages. I've come to realize that the API will return:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;A success message if you pass it a valid feature and the feature is added.&lt;/LI&gt;&lt;LI&gt;A failure message if you pass it a feature and it fails validation.&lt;/LI&gt;&lt;LI&gt;No message if you pass it a valid feature and the feature is not added.&lt;P&gt;It's pretty frustrating, tbh.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 12 Jun 2024 20:57:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491010#M10171</guid>
      <dc:creator>rob_d</dc:creator>
      <dc:date>2024-06-12T20:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491012#M10173</link>
      <description>&lt;P&gt;Can you try that again, but way smaller?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I don't know if you are working from a dataframe, but another check would be just sending in the data with just a few fields. Just to narrow down the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 21:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491012#M10173</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-06-12T21:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491025#M10175</link>
      <description>&lt;P&gt;Have you also ruled out any sort of database syncing issues?&lt;/P&gt;&lt;P&gt;I was running an arcpy operation involving UpdateCursor on an Enterprise database recently.&amp;nbsp; Everything looked to be successful, but no values updated.&lt;/P&gt;&lt;P&gt;Until I looked back the next day and all of the values&amp;nbsp;&lt;EM&gt;did&lt;/EM&gt; populate.&amp;nbsp; I thought I was going crazy, so I started doing some testing, and discovered that apparently because of the way our IT department had the database configured, direct/manual edits would go through immediately.&amp;nbsp; But edits queued through UpdateCursor &amp;amp; Editor (the latter is required when an SDE is involved) would disappear into some hidden back-end until the server re-synced every evening around midnight.&lt;/P&gt;&lt;P&gt;Further complicating matters: After the data finally appeared in SDE every next day, the time stamps also always showed the time I ran the code the previous day,&amp;nbsp;&lt;U&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/U&gt; the time that the sync happened, which made it hard to troubleshoot, at first.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr&lt;BR /&gt;&lt;/STRONG&gt;Run a test, note the time, and then don't touch it for 24 hours.&amp;nbsp; See if the behavior is the same, or if it changed.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 21:21:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491025#M10175</guid>
      <dc:creator>MErikReedAugusta</dc:creator>
      <dc:date>2024-06-12T21:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491047#M10176</link>
      <description>&lt;P&gt;Got it - thanks for the suggestion! I was able to add a feature with no attributes, so I must be getting attribute formatting/conversion errors somewhere (I'm guessing the date attributes).&lt;/P&gt;&lt;P&gt;I didn't think to check though, because I DO get some errors (mostly 10500 errors without descriptions, or&amp;nbsp; conversion errors for boolean attributes). Seems odd that no errors are raised in the vast majority of cases.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 21:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1491047#M10176</guid>
      <dc:creator>rob_d</dc:creator>
      <dc:date>2024-06-12T21:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calls to FeatureLayer.edit_features() succeed, but new features are not saved.</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1492005#M10181</link>
      <description>&lt;P&gt;So far, I've just had formatting issues that raised silent errors.&lt;/P&gt;&lt;P&gt;But I'll definitely keep this in mind if I run into more issues.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 18:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/calls-to-featurelayer-edit-features-succeed-but/m-p/1492005#M10181</guid>
      <dc:creator>rob_d</dc:creator>
      <dc:date>2024-06-13T18:54:33Z</dc:date>
    </item>
  </channel>
</rss>

