Skip to content

unable to update item property values to empty #2411

@jamesrn

Description

@jamesrn

Describe the bug
We can update an item properties with new values without issue. However if we need to remove all existing values and make the property empty, we are unable to do so via the API for Python.
Example and code shared in community a few years ago and still shows same behavior today;

https://community.esri.com/t5/arcgis-api-for-python-questions/update-item-properties-reset-back-to-no-value-null/td-p/806957

To Reproduce
See community post for code.

another example:
print("Attempting to clear all tags...")
result = portalItem.update(item_properties={"tags": ""})

Screenshots
See community post for Screenshot 

Expected behavior
I would expect us to be able to set a property to an empty value like we can with the Rest API.

Platform (please complete the following information):
 - OS: [e.g. iOS] Windows 11
 - Browser [e.g. chrome, safari] n/a
 - ArcGIS Pro 3.5.4
 - Python API Version [e.g. 1.6.2] 2.4.1.1

Additional context
None yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions