<?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 Re: Python script works on ArcGIS Desktop, but not on Server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465154#M17982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you publish a python base tool the publishing change the script and copy it to the server directory (as you can see in the error).&lt;/P&gt;&lt;P&gt;Line 103 in the changed script might be different then line 103 in the original script.&lt;/P&gt;&lt;P&gt;Take a look in the changed script (but do not edit it) to try to understand the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 05:34:49 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2016-04-04T05:34:49Z</dc:date>
    <item>
      <title>Python script works on ArcGIS Desktop, but not on Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465152#M17980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've setup a Geoprocessing service, based on a&amp;nbsp; python script. I can publish a gp tool by creating the tool, running ArcMap, and then selecting the results and clicking Share As GP Service. The tool execute with success in ArcMap. But after create the GP services and execute in AGS as&amp;nbsp; Widget it's didn't work. So, I went to REST page to see the INFO. I could see that I'm getting a python error, as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;esriJobMessageTypeError&lt;/EM&gt;: Traceback (most recent call last): File "D:\arcgezfffisserver\directories\arcgissystem\arcgisinput\teste\GP_Bearing_Distance.GPServer\extracted\v101\gp_tools\Prediction.py", line 103, in del row NameError: name 'row' is not defined&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I just have the following parameter at the line 103&amp;nbsp;&amp;nbsp; " bearing_pos = Bearing + 15"&lt;/P&gt;&lt;P&gt;How it's that possible the scrip locally is working, but the version stored at the Server is not working? I'm using ArcGIS for Server 10.2.2.. The tool works well in version 10, but I'm stucked at the migration&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Dilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2016 13:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465152#M17980</guid>
      <dc:creator>DilsonKitoko</dc:creator>
      <dc:date>2016-03-30T13:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python script works on ArcGIS Desktop, but not on Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465153#M17981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since this question is marked as answered, can it be assumed that it was in error or did you find the answer out by yourself.&amp;nbsp; In any event, you may wish to mark it as unanswered by clicking on the title and going to the thread outside of your mail, or, perhaps provide the solution that worked for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Apr 2016 18:54:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465153#M17981</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-02T18:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python script works on ArcGIS Desktop, but not on Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465154#M17982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you publish a python base tool the publishing change the script and copy it to the server directory (as you can see in the error).&lt;/P&gt;&lt;P&gt;Line 103 in the changed script might be different then line 103 in the original script.&lt;/P&gt;&lt;P&gt;Take a look in the changed script (but do not edit it) to try to understand the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 05:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/python-script-works-on-arcgis-desktop-but-not-on/m-p/465154#M17982</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2016-04-04T05:34:49Z</dc:date>
    </item>
  </channel>
</rss>

