Hi all,
I have the below code written in AGOL notebook and its purpose is to join features of two feature layers. The output layer will need to be overwritten regularly through running the code every day and the layer also needs to be maintained because it will be used to build a dashboard. I used the Tasks functionality to run the code everyday, but I always get the below error, despite having the Overwrite parameter in my join_features function. Any idea how I can achieve that?
---------------
The error:
"The provided output name is already in use or contains invalid characters."
--------------
The code:
from arcgis.gis import GIS
gis = GIS("home")
itemDis = gis.content.get("8119.............14")
itemDis
itemSrv = gis.content.get("2056ad................fa73")
itemSrv
from arcgis import features
intersectionLayer= features.summarize_data.join_features(target_layer=itemDis,
join_layer=itemSrv,
spatial_relationship='intersects',
output_name='intersection features',
context = {"overwrite": True})
intersectionLayer