laptop and a wrench

Erro

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

Última Publicação: March 15, 2019 ArcGIS API for Python
Número de ID do Erro BUG-000120384
EnviadoFebruary 27, 2019
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for Python
Versão encontrada1.5.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional2012 R2
Versão Fixa1.6.0
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: BUG-000120384

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download