laptop and a wrench

Error

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

Última publicación: March 15, 2019 ArcGIS API for Python
Número de ID del error BUG-000120384
EnviadoFebruary 27, 2019
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.5.3
Sistema operativoWindows OS
Versión de sistema operativo2012 R2
Versión corregida1.6.0
EstadoFixed

Solución alternativa

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

Pasos para reproducir

ID del error: BUG-000120384

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga