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:
I don't know where to start to troubleshoot this issue. Has anyone else come across this before?
I usually see that error when my tools have validation code, does removing the validation before publishing fix things?
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.