Select to view content in your preferred language

Overwrite Web Layer removes all features from online hosted layer

1088
5
10-05-2023 09:46 AM
Labels (1)
rptonka12
Emerging Contributor

My organization has been extremely frustrated with this issue. We often need to overwrite feature layers on AGOL, but have been experiencing a situation where the overwrite initiated in Pro goes through without an issue, but upon viewing the updated layer in AGOL, all the features have been removed. Publishing new layers works fine, but overwriting an existing layer removes all features and results in an empty feature layer, when the original layer in Pro has features.
Screenshot 2023-10-05 at 10.44.28 AM.png

Field and symbology changes are correctly inherited into web maps containing the layer, but all actual features are gone. Has anyone experienced this or found a solution or explanation?

5 Replies
jcarlson
MVP Esteemed Contributor

In general, unless you're making changes to the schema or layer list, overwriting layers is a bad idea, for reasons like this. Can you try a truncate / append process instead?

On AGOL, are there any filters in place? Can you see any log messages in ArcGIS Pro?

- Josh Carlson
Kendall County GIS
0 Kudos
rptonka12
Emerging Contributor

No filters in AGOL in the primary layer, though we do have a view layer set up that filters the data (although we run into this issue even when there aren't view layers involved). No messages in Pro other than saying the layer was overwritten successfully.

In the past I've assumed that appending requires us to upload a zipped shapefile to AGOL, where overwriting was convenient because it allowed us to work directly from a geodatabase without creating a bunch of new files through exporting and zipping. But it looks like I can add my hosted feature layers from AGOL right into Pro if I'm logged in - have you had success making edits in Pro this way and having them reflected back in AGOL?

0 Kudos
ThomasThorsen1
Occasional Contributor

is there a write up on truncate and append for AGOL? I made the same mistake.  

0 Kudos
by Anonymous User
Not applicable

...

0 Kudos
rptonka12
Emerging Contributor

There was one hidden field in the layer coming from our Pro geodatabase - if you're able to point me to that bug report I'd be curious to see if it sounds like a similar problem. I tried making that field visible and overwriting again, but I still have zero features even though the newly visible field was correctly updated in the AGOL schema.

0 Kudos