Delete Features Activity Behavior
I am running the Delete Features activity, but the features are not getting deleted from the feature service.
My preferred workflow is to select the features in the map using a geometry picker, running a query activity to select the features with that geometry, then feeding the resulting graphic collection to the Delete Features activity. I have also built an array of the OBJECTIDs from the selected feature(s) and fed those to the Delete Features activity and had no luck.
I am watching the web traffic with both of those scenarios, and the calls are being made to the REST successfully, and when I view the .har file, I can find the post request with the correct OBJECTIDs that should be getting deleted, but no deletes are happening.
I can then go to the REST endpoint, and through the Apply Edits operation, I provide the OBJECTIDs to be deleted, and the operation performs as expected, and the features are deleted. I have then compared the .har file from those operations to the .har file from when I run the workflow, and the post requests are identical.
Any thoughts?
Thanks,
Brian
-
What do your log files on ArcGIS Server say for the call made from the workflow?
0 -
Hey @Nelson Dobbs? ,
Thanks for the quick response. I checked the AGS logs, and I am seeing that the request is being successfully processed:
"REST request successfully processed. Response size is 192 characters."
Thanks,
Brian
0 -
Are you using Workflow 4 or Workflow 5?
Are the objectids sent as string values instead of integer values?
0 -
Hey @Nelson Dobbs? and @Nico Burgerhart? ,
I'm a dumb-dumb. I had the MapServer layer in my map, and not the FeatureServer, so when it was submitting the request to the REST, it was sending it to the MapServer layer which does not have the "ApplyEdits" operation...
I changed the source of my map, and actually brought in the FeatureServer layer and the operation works.
Thanks,
Brian
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare