laptop and a wrench

Bug

Publishing or overwriting the web tool to ArcGIS Enterprise does not include the choicelists parameter when published using the Python (arcpy.sharing) script.

Portal for ArcGIS
Bug ID Number BUG-000157936
SubmittedApril 28, 2023
Last ModifiedMarch 12, 2024
Applies toPortal for ArcGIS
Version foundN/A
Operating SystemN/A
Operating System VersionN/A
StatusIn Product Plan

Additional Information

This is as designed. The sddraft.choiceLists property is not used to set up a choice list for a string data type input. For the string type input parameter, the correct way to display the choice list is to add the values to the value list values in the script tool. Publish it with a Python script without using the sddraft.choiceLists property to get the choice list in the published web tool. The sddraft.choiceLists property of the GeoprocessingSharingDraft class is actually for the layer input data type, which becomes a string when running in the script. For more information, refer to https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/geoprocessingsharingdraft-class.htm in the 'Overwrite a web tool to ArcGIS Enterprise' section. This issue is to be exported, and the explanation of the sddraft.choicelists property in the help documentation is to be improved.

Steps to Reproduce

Bug ID: BUG-000157936

Software:

  • Portal for ArcGIS

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