laptop and a wrench

Bug

'reassign_to' fails with "AttributeError: 'Item' object has no attribute '_user_id'" because item objects are not properly initialized.

Zuletzt veröffentlicht: March 15, 2019 ArcGIS API for Python
Bug-ID-Nummer BUG-000120384
EingereichtFebruary 27, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.5.3
BetriebssystemWindows OS
Betriebssystemversion2012 R2
Behoben in Version1.6.0
StatusFixed

Workaround

For now, work around this issue by adding an additional line to the for loop that explicitly sets the value of the item source owner user ID:for item in usercontent:    item._user_id = 'sourceownerid'    try:        item.reassign_to(new_userid)    except Exception as e:        print("Item may have been already assigned to the user.")

Schritte zur Reproduzierung

Bug-ID: BUG-000120384

Software:

  • ArcGIS API for Python

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