I have an extremely simple python toolbox failing on ArcGIS Server. Here's the background:
Machine
Steps:
When running the AGS GP service from within ArcGIS Desktop, I get a minimal 'Failed' error. AGS logs an error of 'Tool is not valid'. Well, if it weren't valid it shouldn't have run successfully in Desktop before publishing...
My best guess was python and/or arcpy could not be found. I added python to the system PATH and also created and set a PYTHONPATH system environment variable. No dice. Any ideas?
Regards,
Shane
Solved! Go to Solution.
Troubleshooting
When the geoprocessing service was executed the module (er, pyt) was failing when trying to import arcpy. ArcGIS Server didn't recognize the path. Not sure how this came to be, but guessing it had to do with having Desktop and Server on the same machine.
Solution
Run the installation for ArcGIS Server and perform a repair.
Troubleshooting
When the geoprocessing service was executed the module (er, pyt) was failing when trying to import arcpy. ArcGIS Server didn't recognize the path. Not sure how this came to be, but guessing it had to do with having Desktop and Server on the same machine.
Solution
Run the installation for ArcGIS Server and perform a repair.