Hello, I'm trying to achieve a specific workflow in ArcGIS Enterprise 10.9.0 within the geoprocessing widget in Web App Builder that requires me to append to a hosted feature service. This works fine if I'm appending from within ArcGIS Pro, but as I mentioned before, I'm trying to achieve it via a web app.
Here is my ModelBuilder workflow:
The basic idea is the user specifies a polygon (Parameter 3) and the number of random points they want created within this (Parameter 1) area. A tool will create the points, then add a new text field, FieldName, to the points that will then store 'Parameter 2' as the value in those fields.
These points, which have been created in memory, are appended to an existing hosted feature. I have a custom Python script at the end that just assigns some ID numbers.
When I add the hosted polygon and point layer to ArcGIS Pro (via URL) and run the model, it works flawlessly and the newly created points are appended to existing points in the hosted feature.
So, I went ahead and published the model as a Web Tool using ArcGIS Pro 2.7 (otherwise the Field Calculator 'Enforce Domains' setting will throw an Error). I loaded the GP Service into the Geoprocessing widget but it seems like when I run the tool there, it doesn't append to the hosted feature anymore (even though it does so when I run it on Pro), it creates a new temporary layer that it then appends to.
If I try to put the name of the 'Hosted Feature' as the output layer name, it gives me the error:
- The Hosted Feature output feature service name is not valid or already exists.
- Failed.
My question is this: Is there any way for me to accomplish what I am trying via a web app? Can I append to an existing hosted feature using the GP widget in Web App Builder? If so, what am I missing in these steps? I am happy to provide any additional details or screenshots.