Overwrite a hosted feature layer with views in Pro when the parent hosted feature layer is published from a file in ArcGIS Pro

6971
21
01-06-2022 02:21 AM
Status: Already Offered
Labels (1)
ZoevdbAT
Frequent Contributor

When creating a hosted feature layer view the following is stated:
You can overwrite the hosted feature layer from which the view was created to refresh the data only if the following are true:
- The parent hosted feature layer was published from a file in ArcGIS Online, not from ArcGIS Pro or ArcMap.
- The hosted feature layer view was not generated by the Join Features analysis tool.
- You did not define an area of interest on the view.

The first point needs to be looked at. At the moment you can't publish a layer from Pro, make views from the hosted feature layer in ArcGISOnline and then use Pro again to overwrite the hosted feature layer to refresh the data of the parent hosted FL.
When using the overwrite web layer tool in ArcGIS Pro it tries to delete all the related service items. Which it can't because there are views created from the parent layer.
StatusMessage: Server Response: ERROR: code:400, Unable to delete item. This service item has a related Service item, Bad syntax in request.

However you CAN publish from a FGDB (or any other file) in Online or use FME to publish. It really stuns me that you can't use ArcGIS Pro for this.
So please take it into consideration to fix this!

Kind regards,

Zoë

 

21 Comments
BruceRipley
Status changed to: Already Offered

Thanks to all of you who commented on this idea. As previously mentioned in this thread, this workflow is already supported. If you are experiencing issues overwriting web feature layer with views using ArcGIS Pro, please message me privately so that we can troubleshoot the behavior.

Best,

Jonah

@JonahLay  you wrote the above back in June. I'm trying to do this very thing and I cannot get it to work. AP 3.4. I have tried to do this now for hours and the only thing I can get to work is publishing after the views are deleted. I don't have to describe the pain that causes it's well documented. If you want to talk about it I'm game. bripley@uidaho.edu