laptop and a wrench

漏洞

The GPDataFile data type is converted to GPString when publishing a geoprocessing tool to ArcGIS Server.

上次发布: July 16, 2021 ArcGIS GIS Server
漏洞 ID 编号 BUG-000138701
已提交April 2, 2021
上次修改时间June 5, 2024
适用范围ArcGIS GIS Server
找到的版本10.8.1
操作系统Windows OS
操作系统版本2019 64 Bit
状态Will Not Be Addressed

附加信息

GPDataFile is out of date and using File or DEFile should be used instead.

解决办法

  1. In ArcGIS Pro, open the edit window for the script.
  2. Change the output data type from GPDataFile to File.
  3. Save the script.
  4. Run the tool in ArcGIS Pro and publish the result as a new web tool.
  5. Notice when the data type is set to file in the source script, the Geoprocessing Service lists the output data type as GPDataFile.

File is not listed as a data type parameter for geoprocessing tools according to this documentation: https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameter-data-types-in-a-python-toolbox.htm

重现步骤

漏洞 ID: BUG-000138701

软件:

  • ArcGIS GIS Server

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项