I have a situation that seems counterintuitive, but hear me out. I created a point hosted feature layer and a web map. Editing was and is disabled for that layer. I've made public web maps and apps from this data.
Now the customer wants a second web map/app for some of their staff to edit the points (add, delete, move, update attributes).
At first, I was unhappy about this request because it meant that the hosted feature layer currently in a public web map would need to have its edit capability turned on, which I don't want to do in a public web map. This would necessitate creating a new "public read-only" View of that hosted feature layer and re-source the web maps and apps to that public View. That would be A LOT of work to reconfigure the apps to point to that view.
I had an idea today. Is it possible to keep the original hosted feature layer in its current "read-only" state but create a View from that, make the View editable, and then make the staff editor web map use that View?
I went through all the steps to test this out, and everything pointed to "Yes," this should work. I created the View, then went to the View settings and turned on editing (even though the originating hosted feature layer is not enabled for editing).
However, now, when I go into a web map with that new, editable layer View and try to add a new feature, I get the following error: "Edits could not be saved: Cannot perform operation. Invalid operation parameters."
When I look at the "applyedits" response in the browser network traffic console after I get that error message, I see a more detailed message as follows, "An item with the same key has already been added".
I can move existing points and update their attributes, but I can't add new points.
Is this because I have an editable layer View based on a non-editable hosted feature layer, or some other reason?