laptop and a wrench

Bug

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

Last Published: March 15, 2019 ArcGIS API for Python
Bug ID Number BUG-000120384
SubmittedFebruary 27, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.5.3
Operating SystemWindows OS
Operating System Version2012 R2
Version Fixed1.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.")

Steps to Reproduce

Bug ID: BUG-000120384

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options