<?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: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245310#M49607</link>
    <description>&lt;P&gt;There are a lot of reasons why this might have happened. In general, overwriting a service to update its contents is asking for trouble. You should only do it if something has changed about the layer structure, or if there were significant changes to the schema; most everything else can be modified in-place, or by using a truncate/append process.&lt;/P&gt;&lt;P&gt;When you overwrote the layer, were there any changes to the order of your layers or the schema?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2023 15:59:41 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-01-04T15:59:41Z</dc:date>
    <item>
      <title>Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245305#M49606</link>
      <description>&lt;P&gt;I just used the Overwrite Web Layer in ArcGIS Pro to update a Hosted Feature Layer in ArcGIS Online. That Hosted Feature Layer updated successfully, however, the Hosted Feature Layer View that we have in a lot of ArcGIS Online maps/apps did not update. An error message pops up saying that the layer is not available anymore.&lt;/P&gt;&lt;P&gt;I did this successfully back in September 2022, but it is not working right now. Does anybody know what may be happening here? Did ESRI change this capability? Any comments are appreciated.&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245305#M49606</guid>
      <dc:creator>AmandaBeck</dc:creator>
      <dc:date>2023-01-04T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245310#M49607</link>
      <description>&lt;P&gt;There are a lot of reasons why this might have happened. In general, overwriting a service to update its contents is asking for trouble. You should only do it if something has changed about the layer structure, or if there were significant changes to the schema; most everything else can be modified in-place, or by using a truncate/append process.&lt;/P&gt;&lt;P&gt;When you overwrote the layer, were there any changes to the order of your layers or the schema?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245310#M49607</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-04T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245316#M49609</link>
      <description>&lt;P&gt;Hi Josh,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data in which I needed to overwrite was address point data - which I send to the state twice a year. My GIS department came up with this procedure of overwriting the layer from ArcGIS Pro to update the hosted feature layer which would automatically update the view layer. It worked perfectly fine when I did the last update in August. I understand the positives of appending data to a layer in ArcGIS Online, however, when we are talking about such a large layer with points that could have been moved/deleted/and added, it seems better to just overwrite the entire layer completely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, there were no changes made to the layer or schema before overwriting it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:06:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245316#M49609</guid>
      <dc:creator>AmandaBeck</dc:creator>
      <dc:date>2023-01-04T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245323#M49610</link>
      <description>&lt;P&gt;Well, that eliminates any easy explanations. We used to update some of our layers this way, and would occasionally run into this very problem, especially with view layers. We'd overwrite a layer 8 times, and on the 9th, it would break.&lt;/P&gt;&lt;P&gt;Sometimes we &lt;EM&gt;could &lt;/EM&gt;identify an error in the data that got through the publishing tool's analyze step, but more often, there was no discernible difference.&lt;/P&gt;&lt;P&gt;For the record, truncating and appending basically &lt;EM&gt;is &lt;/EM&gt;overwriting, but only the data itself, while leaving all the deeper settings in place. It's what most people actually want to be doing when they use the built in "overwrite web layer" tool. You "zero out" the layer first, then append into it, so every record, whether new, modified, or otherwise, is reflected in the end product, and there's no risk of out-of-date data.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245323#M49610</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-04T16:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245326#M49611</link>
      <description>&lt;P&gt;Well it's nice to know that we're not the only ones that have run into this issue! I just want to verify that I am correct in saying that when updating a hosted feature layer (either overwriting or appending), the view layer should update itself automatically? From what you are explaining that has happened to you in the past, this seems to be the case as to why we would even try doing this in the first place.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you now only use the append data in ArcGIS Online to update hosted feature layers to show in view layers? I just want to know what a solution would be for this to not run into this problem again. Aside from recreating the view layer, there doesn't seem to be a way to fix it at this point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add to the confusion, when I am looking at the details page in ArcGIS Online of the View Layer, under layers where the data is, when I click on it, it shows the date I updated the data in the hosted feature layer. It's almost as if it worked partially, just not all the way if you know what I mean.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amanda Beck - Warren County GIS&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245326#M49611</guid>
      <dc:creator>AmandaBeck</dc:creator>
      <dc:date>2023-01-04T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245331#M49613</link>
      <description>&lt;P&gt;Hello Amanda,&lt;/P&gt;&lt;P&gt;I don't know how to explain this problem that also happened to me, but I managed to get around it by activating the "Assign layer IDs" option in ArcGIS Pro 3.&lt;BR /&gt;In previous versions I remember not needing this.&lt;/P&gt;&lt;P&gt;&lt;A title="Assign layer ids" href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/assign-layer-ids.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/assign-layer-ids.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;(this message was translated from PT-BR)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245331#M49613</guid>
      <dc:creator>FabioLuiz2</dc:creator>
      <dc:date>2023-01-04T16:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245336#M49614</link>
      <description>&lt;P&gt;You're correct, updating the main layer should update the associated views as well. The trouble is that overwriting replaces the entire &lt;EM&gt;service definition&lt;/EM&gt; of the layer, but the view layer retains its original definition, so there can be underlying differences between main layer and view layer that render the view incompatible.&lt;/P&gt;&lt;P&gt;We use the ArcGIS Python API to update our layers, whether they have associated views or not, if the original source of the data is elsewhere.&lt;/P&gt;&lt;P&gt;Here's a &lt;EM&gt;very &lt;/EM&gt;simple version of the process:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
from arcgis.features import GeoAccessor

# log in to portal
gis = GIS('portal-url', 'user', 'password')

# get feature layer by id and index
fl = gis.content.get('itemid of service').layers[0]

# load source data; this will vary depending on the source
df = GeoAccessor.from_featureclass('path to file')

# truncate existing data
fl.manager.truncate()

# load latest data in
fl.edit_features(adds=df.spatial.to_featureset())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For larger updates, you may wish to do this in smaller batches, rather than submitting a single, massive update.&lt;/P&gt;&lt;P&gt;I know that there is an actual &lt;STRONG&gt;append&lt;/STRONG&gt; functionality in AGOL and the Python API, but for various reasons specific to our source data, I've not been able to get that process working for our updates. But the truncate/append script runs perfectly well, so I don't see any particular reason to alter it.&lt;/P&gt;&lt;P&gt;We use this for lots of things, including some address data. For about 50k address points, the entire process runs in only a few minutes.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 16:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245336#M49614</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-04T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245393#M49617</link>
      <description>&lt;P&gt;Thanks for providing the code sample Josh, as this looks very powerful.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 18:46:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245393#M49617</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-01-04T18:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245417#M49619</link>
      <description>&lt;P&gt;I agree, thanks for the code.&amp;nbsp; Seems to work well if I don't have any attachments and will get a lot of mileage out of it.&lt;/P&gt;&lt;P&gt;I see you can add add/update/delete attachments with this, but from what I can tell one must supply a dictionary listing all the attachements to add.&lt;/P&gt;&lt;P&gt;Do you know of a simple way to have this "maintain" the attachments of the features being added without somehow having to come up with the dictionary?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 19:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245417#M49619</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-01-04T19:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245424#M49620</link>
      <description>&lt;P&gt;Are the attachments coming from the source dataset, or are you trying to maintain things that have been attached to the destination?&lt;/P&gt;&lt;P&gt;I don't have an "overwrite" process that involves layers with attachments, but I do have a few layers with attachments that get updated from an external source. It's a different process, using the pandas module's &lt;STRONG&gt;compare&lt;/STRONG&gt; method to identify edited rows between source and destination, then updating those features in place.&lt;/P&gt;&lt;P&gt;More complex to set up, but say you have a 50k feature layer and only 1000 actually get edited in the source, this would only edit those 1000 in the destination, leaving the other 49k untouched entirely. It's equivalent to just opening the attribute table and making edits, albeit much, much faster.&lt;/P&gt;&lt;P&gt;If you're interested, I presented on the topic at a conference last year, and you can find all the notes and Python code here: &lt;A href="https://github.com/jdcarls2/ilgisa-2022/blob/main/hosted-copy/hosted-copy.ipynb" target="_blank"&gt;https://github.com/jdcarls2/ilgisa-2022/blob/main/hosted-copy/hosted-copy.ipynb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 20:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245424#M49620</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-01-04T20:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245456#M49623</link>
      <description>&lt;P&gt;Looking for a way to "Overwrite" my hosted layer with local (SDE) data.&lt;/P&gt;&lt;P&gt;The data is a combination of local data and hosted data, but I bring them all together in a local feature class, edit/modify, etc.&lt;/P&gt;&lt;P&gt;Then, I want to overwrite the hosted feature layer with the "new" data.&amp;nbsp; If I don't make any schema changes, ensure layer id's dont change, etc. "most" of the time, I can overwrite the HFL with Pro, and it works just fine.&amp;nbsp; However, as we all know, now and then, it will 'break' pretty much everything that is tied to it, and it all needs to be re-configured.&lt;/P&gt;&lt;P&gt;Trying to avoid this, and have had good success with truncating the HFL data and appending the SDE data to it.&amp;nbsp; This works well, even maintains the attachments.&amp;nbsp; HOWEVER, the &lt;A href="https://support.esri.com/en/technical-article/000024458" target="_self"&gt;Preserve Global IDs&lt;/A&gt; does NOT work with HFL.&amp;nbsp; Documentation says it's a "known limitation" which past experience tells me that most likely ESRI does not plan on changing this.&lt;/P&gt;&lt;P&gt;Basically, trying to figure out a way to 'replace' a HFL's data without breaking any maps/popups/apps/etc. that are using it, but, need to maintain the attachments and the Global ID's, but am not able to figure out a tool/method that does both.&lt;/P&gt;&lt;P&gt;Interesting that I can go from HFL to SDE/MGDB with no issues, but can't go the other way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind of defeats the purpose of a unique global id if it is changing on you......&lt;/P&gt;&lt;P&gt;Thanks again for any insight,&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 21:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1245456#M49623</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-01-04T21:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1385159#M57607</link>
      <description>&lt;P&gt;We are doing the same thing as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;, and get some interesting issues, have lots of retries built in to get it to work.&amp;nbsp; Will ping colleagues to post some help as we figure things out.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 21:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1385159#M57607</guid>
      <dc:creator>JTessier</dc:creator>
      <dc:date>2024-02-21T21:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1489221#M59690</link>
      <description>&lt;P&gt;Thanks for this code, Josh.&lt;/P&gt;&lt;P&gt;When I run it, it throws an error:&amp;nbsp;'Exception: The page was not displayed because the request entity is too large.'&lt;/P&gt;&lt;P&gt;You mentioned above about dividing it up into smaller chunks. Do you know the best way to do that?&lt;/P&gt;&lt;P&gt;I'm trying to update an AGOL layer from a file geodatabase.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 19:26:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1489221#M59690</guid>
      <dc:creator>DanielWebb</dc:creator>
      <dc:date>2024-06-11T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hosted Feature Layer View Does Not Update When Overwriting Hosted Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1567785#M62822</link>
      <description>&lt;P&gt;Hi Everyone, I wanted to follow up on this thread because I have the same problem, but the hosted feature service is published by another organization, so I have no control over how they do their updates. Is there anyway to actually repair broken layers after an update?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/hosted-feature-layer-view-does-not-update-when/m-p/1567785#M62822</guid>
      <dc:creator>KateDouthat1</dc:creator>
      <dc:date>2024-12-12T14:56:52Z</dc:date>
    </item>
  </channel>
</rss>

