<?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 edit a feature layer's data when it has replicas in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/1140943#M7085</link>
    <description>&lt;P&gt;Also coming here to see if there was ever a solution? I heard in a webinar that you could create views for sharing/offline use, and then update the root layer that the view(s) stem from, but I've been trying that today and I can't overwrite the layer if there are maps downloaded in Field Maps. Frustrating, I would love to be able to keep our reference data more up to date without having to disrupt folks' field workflows. Is there an easier way? I've tried editing the layers directly but there are too many features for me to do this efficiently.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 21:28:05 GMT</pubDate>
    <dc:creator>DanielleKulas</dc:creator>
    <dc:date>2022-02-04T21:28:05Z</dc:date>
    <item>
      <title>How do I edit a feature layer's data when it has replicas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787926#M1484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are currently hosting features in ArcGIS Online to be used with the Collector App. We plan to update these features nightly from an SDE environment with Python. Due to some of the network security implementations, we are restricted from using the REST endpoints from an ArcServer instance to create these feature layers. I have written a script to do this, but the issue I am running into is when a user downloads an area for offline use a replica is created. This replica stops the feature's underlying data source (Service Definition File) from updating the feature. A work around I have found is to unregister the replicas then update the feature, but this causes sync errors on the user's collector area when they attempt to re-sync their downloaded area. Does anyone know of a cleaner solution to updating features with outstanding replicas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# checks if feature exists:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;&amp;nbsp;try&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Gets access to the existing service definition object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; sdItems &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.gis.content.search(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{0}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt; AND owner:&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{1}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.format(feature.name, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.user), &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;item_type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Service Definition"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; sdItem &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sdItems[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Updates feature data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; sdItem.update(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sd)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# if feature does not exits...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;&amp;nbsp;except&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;IndexError&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # the service definition file is uploaded to ArcGIS Online&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; sdItem &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.gis.content.add(feature.getProperties(), &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;sd)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# Gets access the the feature collection object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;featureCollect &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.gis.content.search(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{0}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt; AND owner:&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{1}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.format(feature.name, &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.user), &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;item_type&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Feature Layer&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Collection"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;&amp;nbsp;try&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;# Attempts too publish the service definition to the feature layer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;featureService &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sdItem.publish(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;overwrite&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# if the feature cannot be updated...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;&amp;nbsp;except&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;Exception&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; ex: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Accesses Feature Collection object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; featureService &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.gis.content.get(feature.service_id)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; FeatureCollection &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; FeatureLayerCollection.fromitem(featureService)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Unregisters outstanding replicas&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;&amp;nbsp; &amp;nbsp; for&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; replica &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; FeatureCollection.replicas.get_list():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FeatureCollection.replicas.unregister(replica[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'replicaID'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Disables Syncing&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; FeatureCollection.manager.update_definition({&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"syncEnabled"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;False&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp; &amp;nbsp; # Publishes Service Definition to Feature Layer&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp; &amp;nbsp; featureService &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; sdItem.publish(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;overwrite&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# Updates feature tags&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;featureItem &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.gis.content.get(featureService.id)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;featureItem.update(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;item_properties&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'tags'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: feature.tags})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# Enables Offline Syncing&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;FeatureCollection &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; FeatureLayerCollection.fromitem(featureItem)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;FeatureCollection.manager.update_definition({&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"syncEnabled"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;: &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "serviceDescription"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:feature.desc,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "description"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:feature.desc})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #6a9955;"&gt;&amp;nbsp;# Updates editing capabilities&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;FeatureCollection.manager.update_definition({&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"capabilities"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:feature.capabilities})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 17:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787926#M1484</guid>
      <dc:creator>ChrisMowry1</dc:creator>
      <dc:date>2019-09-11T17:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit a feature layer's data when it has replicas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787927#M1485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, did you ever find a solution to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 15:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787927#M1485</guid>
      <dc:creator>Paul_Christensen</dc:creator>
      <dc:date>2020-06-02T15:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit a feature layer's data when it has replicas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787928#M1486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hitting the same issue with our Open Data layers which are scripted to be updated (via an overwrite) weekly. Sync was enabled on them to allow for use in Collector/Explorer. When users take a map offline this then creates the replicas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aside from having two feature layers, one solely for Open Data and another for mobile users I can't see many other options. Even then the feature layers for mobile users would have to be managed via comms with users to try and get as many as possible to remove their offline maps before doing an update. The update would have to remove any outstanding replicas. I've contacted Esri support but&amp;nbsp;thus far they've got no solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At minimum I've suggested they at least catch it as an error rather than throwing&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;“Job failed” when carrying out a publish with the ArcGIS&amp;nbsp;API for Python and an even less useful "ERROR 999999: Something unexpected caused the tool to fail…" message when using ArcPy.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 22:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/787928#M1486</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-14T22:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit a feature layer's data when it has replicas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/1140943#M7085</link>
      <description>&lt;P&gt;Also coming here to see if there was ever a solution? I heard in a webinar that you could create views for sharing/offline use, and then update the root layer that the view(s) stem from, but I've been trying that today and I can't overwrite the layer if there are maps downloaded in Field Maps. Frustrating, I would love to be able to keep our reference data more up to date without having to disrupt folks' field workflows. Is there an easier way? I've tried editing the layers directly but there are too many features for me to do this efficiently.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 21:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/1140943#M7085</guid>
      <dc:creator>DanielleKulas</dc:creator>
      <dc:date>2022-02-04T21:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit a feature layer's data when it has replicas</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/1141228#M7094</link>
      <description>&lt;P&gt;The work around I went with isn't great, but works for us. If there are replicas, I loop through and unregister them. This means the user will get errors when they sync, so they have to delete their offline copy and download a new one. The edits seem to come over though. Using the predefined areas helps to alleviate some of the issues.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 16:00:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-do-i-edit-a-feature-layer-s-data-when-it-has/m-p/1141228#M7094</guid>
      <dc:creator>ChrisMowry1</dc:creator>
      <dc:date>2022-02-07T16:00:46Z</dc:date>
    </item>
  </channel>
</rss>

