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.

Last Published: December 18, 2019 ArcGIS GIS Server
Bug ID Number BUG-000124933
SubmittedSeptember 3, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS GIS Server
Version found10.6.1
Operating SystemN/A
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

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

Steps to Reproduce

Bug ID: BUG-000124933

Software:

  • ArcGIS GIS Server

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