laptop and a wrench

Bogue

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

Dernière publication: March 15, 2019 ArcGIS API for Python
Numéro d’ID de bogue BUG-000120384
EnvoiFebruary 27, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée1.5.3
Système d’exploitationWindows OS
Version du système d’exploitation2012 R2
Version de correction1.6.0
StatutFixed

Solution de contournement

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.")

Étapes pour reproduire

ID de bogue: BUG-000120384

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement