Select to view content in your preferred language

Custom Geoprocessing Tool (GPServer) Error 000816: The tool is not valid.

182
2
07-03-2025 10:35 AM
John_Davis709
New Contributor

I have a custom python toolbox containing python tools to generate .pdf reports based on specific feature classes. These features are part of a collaboration, and all data and tools are shared in the distributed workspace.

I have successfully run the tools inside of ArcGIS Pro as well as stand-alone python envs. I was successful in publishing the tools to ArcGIS Enterprise. The issue is after I shared the tools as a webtool to my ArcGIS Enterprise deployment, the tool no longer works.

I was unable to use the tool in map viewer, submitJob in ArcGIS rest services, or in a geoprocessing widget. Each attempt returned the same error:

  • esriJobMessageTypeError: ERROR 000816: The tool is not valid.

 I don't know where to start to troubleshoot this issue. Has anyone else come across this before?

0 Kudos
2 Replies
DavidSolari
MVP Regular Contributor

I usually see that error when my tools have validation code, does removing the validation before publishing fix things?

0 Kudos
MikaelJ
Occasional Contributor

Hey @John_Davis709 ,

 

this is well known issue.

You need to:

1) Remove everything in execute

2) Remove all the imports apart from arcpy

3) Leve parameters info as it is.

4) Run empty tool

5) Publish it

6) Stop GP

7) Go to arcgisinput and replace content of your toolbox to the version you wish to run

😎 Start GP -> now it will work.

 

0 Kudos