laptop and a wrench

Bug

ArcGIS API for Python returns the error message "TypeError: create_view() got an unexpected keyword argument 'visible_fields'" when attempting to create a view from a hosted feature layer.

ArcGIS API for Python
Bug ID Number BUG-000166943
SubmittedApril 23, 2024
Last ModifiedJune 25, 2024
Applies toArcGIS API for Python
Version found2.2.0
Operating SystemWindows OS
Operating System Version10.0
StatusWill Not Be Addressed

Additional Information

This is fixed in version 2.3.0+ of the ArcGIS API for Python as indicated in the issue. The API reference always points to the latest documentation. For previous versions of the API reference, please download it here: https://developers.arcgis.com/downloads/#python

Workaround

  • Create the view without using the visible_fields parameters, and use the update_definition command to set field visibility.
  • Upgrade to ArcGIS API for Python version 2.3.0.

Steps to Reproduce

Bug ID: BUG-000166943

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