<?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: Error Updating a Feature Service Definition in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-updating-a-feature-service-definition/m-p/1036746#M5726</link>
    <description>&lt;P&gt;I am having this exact same issue!&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 17:55:58 GMT</pubDate>
    <dc:creator>LanceKirby2</dc:creator>
    <dc:date>2021-03-15T17:55:58Z</dc:date>
    <item>
      <title>Error Updating a Feature Service Definition</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-updating-a-feature-service-definition/m-p/877210#M4969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to update a Feature Service in a 10.7.1 Enterprise, with ArcGIS for Python Api. The Feature Service is backed by a EGDB. When I run with the following code I get an error. I have logged in as an admin. Actually the same admin user that created the feature service. When it gets to line 6 the error is thrown. Everything up to that comes back as expected.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;...&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;1. search_results = gis.content.search(query='title: "'+&amp;lt;title&amp;gt;+'*" AND type: "Feature Service"')
&lt;/SPAN&gt;&lt;SPAN class=""&gt;2. feature_layer_item = search_results[0]
&lt;/SPAN&gt;&lt;SPAN class=""&gt;3. featureLayer_collection = FeatureLayerCollection.fromitem(feature_layer_item)
&lt;/SPAN&gt;&lt;SPAN class=""&gt;4. update_dict = {"enableZDefaults": True, "allowUpdateWithoutMValues": True}
&lt;/SPAN&gt;&lt;SPAN class=""&gt;5. properites = featureLayer_collection.properties 
&lt;/SPAN&gt;&lt;SPAN class=""&gt;6. featureLayer_collection.manager.update_definition(update_dict)
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;IMG __jive_id="503499" class="image-1 jive-image" data-tid="messageBodyImageSrc" height="201" src="https://community.esri.com/legacyfs/online/503499_pastedImage_1.jpg" width="762" /&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt; I am using this example as a guide to do this. &lt;A href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" rel="noreferrer noopener nofollow" tabindex="-1" target="_blank" title="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/"&gt;https://developers.arcgis.com/python/guide/updating-feature-layer-properties/&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Anyone encountered this and has a work around or sees my error? Thanks in advance for any help.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-updating-a-feature-service-definition/m-p/877210#M4969</guid>
      <dc:creator>ChristopherDufault</dc:creator>
      <dc:date>2021-12-12T17:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error Updating a Feature Service Definition</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-updating-a-feature-service-definition/m-p/1036746#M5726</link>
      <description>&lt;P&gt;I am having this exact same issue!&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1108"&gt;@XanderBakker&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 17:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-updating-a-feature-service-definition/m-p/1036746#M5726</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2021-03-15T17:55:58Z</dc:date>
    </item>
  </channel>
</rss>

