<?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: Publish python script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632608#M49288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you go through authoring, publishing and using... python scripts beginning in this section.&lt;/P&gt;&lt;P&gt;ArcGIS Pro help, modify if needed&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/share-analysis/authoring-geoprocessing-services-with-python-scripts.htm" title="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/share-analysis/authoring-geoprocessing-services-with-python-scripts.htm"&gt;Authoring geoprocessing services with Python scripts—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Mar 2020 19:24:19 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-03-26T19:24:19Z</dc:date>
    <item>
      <title>Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632607#M49287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure if this is the best forum for this question as it leaves the python realm a bit....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that does some stuff&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; * this runs fine in the editor&lt;/P&gt;&lt;P&gt;I then create a toolbox tool and point it to the python script&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; * i can double click the toolbox enter the parameters and run this with no issues&lt;/P&gt;&lt;P&gt;I then publish this to ArcGIS Server after running it&lt;/P&gt;&lt;P&gt;I then go to Server and launch the service and enter the parameters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it fails....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any thoughts on what I should check?&amp;nbsp; Cant seem to narrow this down&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 18:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632607#M49287</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-03-26T18:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632608#M49288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you go through authoring, publishing and using... python scripts beginning in this section.&lt;/P&gt;&lt;P&gt;ArcGIS Pro help, modify if needed&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/share-analysis/authoring-geoprocessing-services-with-python-scripts.htm" title="https://pro.arcgis.com/en/pro-app/help/analysis/geoprocessing/share-analysis/authoring-geoprocessing-services-with-python-scripts.htm"&gt;Authoring geoprocessing services with Python scripts—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 19:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632608#M49288</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-26T19:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632609#M49289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is where I am blowing up......cant figure it out&lt;/P&gt;&lt;P&gt;I am trying to use an SDE connection file that I copied to a location on my server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works when I run from the GP tool on the server, but fails when I run it after publishing....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/Work/CountySelection/connection.sde/Counties_1_Dissolved'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'counties_lyr'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/Work/CountySelection/connection.sde/Buffer_1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'buffer_lyr'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

results &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByLocation_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'counties_lyr'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'INTERSECT'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'buffer_lyr'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:54:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632609#M49289</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T02:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632610#M49290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;errors would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 23:27:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632610#M49290</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-26T23:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632611#M49291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;descriptive errors from ESRI...hahahaah&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is all I get when trying to run from the RestEP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but works fine from the GP Tool itself&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="486328" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/486328_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 23:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632611#M49291</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2020-03-26T23:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Publish python script</title>
      <link>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632612#M49292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps copy the connection file to the server with a full path, have you set up setparameter etc as derived output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On publishing you should be able to specify the level of error messaging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 12:11:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/publish-python-script/m-p/632612#M49292</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-03-27T12:11:13Z</dc:date>
    </item>
  </channel>
</rss>

