Skip to main content
Question

ESRI Feature Service with a View Layer

  • July 31, 2026
  • 1 reply
  • 4 views

chad.ramos_tdem
Observer
Forum|alt.badge.img+1

We have a hosted feature layer that we update via FME on a schedule. It worked fine until we made a view layer of the hosted feature layer. Now we get an HTTP Error Code: 400 saying 'Cannot remove Layer 0 from <layer name>. Layer 0 is referenced by view service <layer name view>.'  

In the writer we’re using Feature Operation: Insert and Feature Handling: Use Existing. We’ve also tried changing this to Truncate Existing which still didn’t work. 

What is the correct workflow for updating a hosted feature service if the feature service has view layers? 

1 reply

chad.ramos_tdem
Observer
Forum|alt.badge.img+1

We figured it out. When you create the writer, on the first page of the writer creation under the Feature Service options>Feature Service Handling> you have to choose “Use Existing” instead of “Overwrite Existing”. Then on the Feature Type page>Layer>Feature Type Handling choose Truncate existing. 

From what we understand this is similar to the truncate and adds workflow using the ArcGIS Python API, which is what we were hoping for. The layer is not overwritten, the features are deleted and then rewritten from the input in the workspace.