I have a feature layer and a SharePoint list. The SharePoint list contains images with XY coordinates, and is the primary storage, where images are uploaded, updated or deleted.
I have a flow that inserts a point feature in a feature layer whenever there is a new item added to the SharePoint list. This works just fine.
However, I am struggling with an instant flow that is triggered when an image is deleted from the list. The flow triggers ok, but I am running into an error when trying to execute the ArcGIS Enterprise version of "Delete a record from feature layer" action. No matter how I format the Delete Records parameter, I always get the same error when testing:
ResponseSwaggerSchemaValidationFailure
The API 'arcgisenterprise' returned an invalid response for workflow operation 'Delete_a_record_from_feature_layer' of type 'OpenApiConnection'. Error details: 'The API operation 'DeleteItemInFeatureLayer' requires the property 'body' to be of type 'Array' but is of type 'String'.'
This happens even if I use a hardcoded objectid in a createArray() function. I have also tried several other ways, e.g. using an "Initialize variabel" creating an array, and then "Append to array variable" to ad the current item id.
There is no log information in the underlying ArcGIS Server, and I think flow stops before sending a delete request to the service.
Any suggestions on what is wrong? Has anyone managed to delete features using this action?
