laptop and a wrench

Bug

The gis.content.import_data() method in ArcGIS API for Python incorrectly parses data if a list is returned.

Last Published: January 17, 2023 ArcGIS API for Python
Bug ID Number BUG-000121496
SubmittedApril 4, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.5.2
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

The user object response contains multiple properties that are lists of either strings or dictionaries. These properties, particularly privileges and groups, need to be flattened or replaced with strings in order to publish a table with user properties in this manner.

Workaround

Drop the original 'groups' column with its list of dictionaries and replace it with a groups column with a string, and drop the original 'privileges' column with its list of strings and replace it with a 'privileges' column with one string. This successfully parses results into a feature set.

Steps to Reproduce

Bug ID: BUG-000121496

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