laptop and a wrench

Bug

Overwriting hosted feature services from ArcGIS Pro to ArcGIS Online using Python fails to retain the description and credit (attribution) of the hosted feature layer.

ArcGIS Pro
Bug-ID-Nummer BUG-000163031
EingereichtNovember 16, 2023
Zuletzt geändertFebruary 18, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.1.3
BetriebssystemN/A
BetriebssystemversionN/A
StatusNon-Reproducible

Zusätzliche Informationen

This issue is non-reproducible. If the issue persists, contact Esri Support Services as additional information is needed for further investigation.

Workaround

The following code can be used to overwrite the description, which wipes out:

from arcgis.gis import GIS
gis = GIS("https://www.arcgis.com", "<username>", "<password>")

# replace with item id from url of item detail page of feature service to be updated
search_result = gis.content.search("id:id:<itemID>")

# overwrite tags/description/snippet
search_result[0].update(item_properties={'tags':'test','description':'1234','snippet':'4567'})
print('done')

Schritte zur Reproduzierung

Bug-ID: BUG-000163031

Software:

  • ArcGIS Pro

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln