laptop and a wrench

Bug

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.

Zuletzt veröffentlicht: December 18, 2019 ArcGIS GIS Server
Bug-ID-Nummer BUG-000124933
EingereichtSeptember 3, 2019
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS GIS Server
Gefunden in Version10.6.1
BetriebssystemN/A
BetriebssystemversionN/A
StatusWill Not Be Addressed

Zusätzliche Informationen

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.

Workaround

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

Schritte zur Reproduzierung

Bug-ID: BUG-000124933

Software:

  • ArcGIS GIS Server

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln