Select to view content in your preferred language

Overwriting feature layer from SEDF produces unwated files

147
0
a week ago
Labels (1)
A_Schwab
Occasional Contributor

I have a script that updates an existing feature layer on AGOL with new data every hour. I used to use a process that truncated the layer, then added new data using something like this:

featurelayer.layers[0].edit_features(adds=sedf.spatial.to_featureset()) 

Recently this stopped working, throwing a 413 error, so as a workaround I changed the update process to:

sedf.spatial.to_featurelayer(overwrite=True, service={"featureServiceId": "xyzxyzxyzxyzx", "layer":0})

This works for updating the layer but each time it runs it adds two unwanted objects to AGOL, a file geodatabase and an associated feature layer.

Is there a way to stop these files/layers being created when using the overwrite option? Or a way to identify which files have been created so the script can delete then when it has finished overwriting the existing feature layer?

Tags (3)
0 Kudos
0 Replies