<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Geoprocessing Service Failing on ArcGIS Server Only in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geoprocessing-service-failing-on-arcgis-server/m-p/164400#M12615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an extremely simple python toolbox failing on ArcGIS Server.&amp;nbsp; Here's the background:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Machine &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server 2012 R2&lt;/LI&gt;&lt;LI&gt;ArcGIS Server 10.2 Advanced&lt;/LI&gt;&lt;LI&gt;ArcGIS Desktop 10.2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Run SimpleTool in Desktop (successful)&lt;/LI&gt;&lt;LI&gt;Publish SimpleTool to ArcGIS Server (successful)&lt;/LI&gt;&lt;LI&gt;Run SimpleTool Geoprocessing Service (fails)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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'.&amp;nbsp; Well, if it weren't valid it shouldn't have run successfully in Desktop before publishing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess was python and/or arcpy could not be found.&amp;nbsp; I added python to the system PATH and also created and set a PYTHONPATH system environment variable.&amp;nbsp; No dice. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 16:58:55 GMT</pubDate>
    <dc:creator>ShaneBuscher</dc:creator>
    <dc:date>2014-09-30T16:58:55Z</dc:date>
    <item>
      <title>Geoprocessing Service Failing on ArcGIS Server Only</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-service-failing-on-arcgis-server/m-p/164400#M12615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an extremely simple python toolbox failing on ArcGIS Server.&amp;nbsp; Here's the background:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Machine &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server 2012 R2&lt;/LI&gt;&lt;LI&gt;ArcGIS Server 10.2 Advanced&lt;/LI&gt;&lt;LI&gt;ArcGIS Desktop 10.2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Run SimpleTool in Desktop (successful)&lt;/LI&gt;&lt;LI&gt;Publish SimpleTool to ArcGIS Server (successful)&lt;/LI&gt;&lt;LI&gt;Run SimpleTool Geoprocessing Service (fails)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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'.&amp;nbsp; Well, if it weren't valid it shouldn't have run successfully in Desktop before publishing...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My best guess was python and/or arcpy could not be found.&amp;nbsp; I added python to the system PATH and also created and set a PYTHONPATH system environment variable.&amp;nbsp; No dice. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 16:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-service-failing-on-arcgis-server/m-p/164400#M12615</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2014-09-30T16:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Failing on ArcGIS Server Only</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-service-failing-on-arcgis-server/m-p/164401#M12616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Troubleshooting&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When the geoprocessing service was executed the module (er, pyt) was failing when trying to import arcpy.&amp;nbsp; ArcGIS Server didn't recognize the path.&amp;nbsp; Not sure how this came to be, but guessing it had to do with having Desktop and Server on the same machine.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Run the installation for ArcGIS Server and perform a repair.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 11:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-service-failing-on-arcgis-server/m-p/164401#M12616</guid>
      <dc:creator>ShaneBuscher</dc:creator>
      <dc:date>2014-10-02T11:45:45Z</dc:date>
    </item>
  </channel>
</rss>

