laptop and a wrench

Bogue

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.

Dernière publication: December 18, 2019 ArcGIS GIS Server
Numéro d’ID de bogue BUG-000124933
EnvoiSeptember 3, 2019
Dernière modificationJune 5, 2024
S’applique àArcGIS GIS Server
Version trouvée10.6.1
Système d’exploitationN/A
Version du système d’exploitationN/A
StatutWill Not Be Addressed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000124933

Logiciel:

  • ArcGIS GIS Server

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement