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
漏洞 ID 编号
BUG-000157936
已提交
April 28, 2023
上次修改时间
March 12, 2024
适用范围
Portal for ArcGIS
找到的版本
N/A
操作系统
N/A
操作系统版本
N/A
状态
In Product Plan
该问题已添加到开发团队的解决问题中。 对于具有此状态的问题,将在近期版本(下一个或两个版本)中进行解决。 检查问题的“其他信息”或“备用解决方案”部分,寻找可以完全解决此问题的有用信息。
附加信息
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.