I have an extremely simple python toolbox failing on ArcGIS Server. Here's the background:
Machine
- Server 2012 R2
- ArcGIS Server 10.2 Advanced
- ArcGIS Desktop 10.2
Steps:
- Run SimpleTool in Desktop (successful)
- Publish SimpleTool to ArcGIS Server (successful)
- Run SimpleTool Geoprocessing Service (fails)
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