Select to view content in your preferred language

Truncate and Append Hosted Layer

191
1
07-12-2024 02:17 PM
Status: Open
GaryBilotta
Regular Contributor

It would be very nice if, within the Update Data screen in ArcGIS Online, there was an option to truncate your layer and append features to it. 

There is the Overwrite Entire Feature Layer option, but after speaking with ESRI support, using this too often can lead to dataset corruption (which seems to have happened to me).  Then, there is the add and update features option, but what happens if you have fewer features in the newer dataset?  You will have all the latest data attributes and features that have matching IDs, but will also have records that are no longer relevant.  This also happens in my workflows. 

Having the option to truncate the feature layer and append it with the latest features would be super helpful.  I realize there are Python ways of doing so, but having it built into ArcGIS Online would be super helpful.

Thank you!

1 Comment
DuncanHornby

This can be done very easily in ArcPro. Simply access your Portal through the Catalog Pane, add the layer you want to truncate to a map then run the Truncate table tool on it. As you are referencing the online version inside ArcPro you truncate the table in AGOL.

No code required.