laptop and a wrench

漏洞

Web tool returns the error message, "Error 000816:The tool is not valid" from the REST endpoint of the Select Layer By Location geoprocessing tool and submits a job(GET) request.

上次发布: December 18, 2019 ArcGIS GIS Server
漏洞 ID 编号 BUG-000124933
已提交September 3, 2019
上次修改时间June 5, 2024
适用范围ArcGIS GIS Server
找到的版本10.6.1
操作系统N/A
操作系统版本N/A
状态Will Not Be Addressed

附加信息

Use the workaround or upgrade to a newer version of ArcGIS Pro and ArcGIS Enterprise that fixes the issue. For issues existing in older versions of ArcGIS Enterprise, the issue can be resolved unless it is crucial to the organization and requested through the hotfix process.

解决办法

There are two workarounds:

1. For SelectLayerByLocation, don not use the tool directly, make a script tool with the following code (You have to include copyfeatures):

 

import arcpy

import os

layer1= arcpy.GetParameterAsText(0)

layer2= arcpy.GetParameterAsText(1)

outfc= arcpy.GetParameterAsText(2)

arcpy.management.SelectLayerByLocation(layer1, "INTERSECT", layer2, "", "NEW_SELECTION")

arcpy.CopyFeatures_management(layer1, outfc)

 

2. Upgrade ArcGIS Pro and ArcGIS Enterprise to 2.4 and 10.7 respectively

重现步骤

漏洞 ID: BUG-000124933

软件:

  • ArcGIS GIS Server

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项