<?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: Toolbox as geoprocessing service in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328561#M11547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;arcpy.ImportToolbox("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://na-lap-3z8/ArcGIS_server/services;Toolboxes_Lesson1" rel="nofollow" target="_blank"&gt;http://na-lap-3z8/ArcGIS_server/services;Toolboxes_Lesson1&lt;/A&gt;&lt;SPAN&gt;","abc")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also see this for more info: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2012 18:18:15 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2012-10-03T18:18:15Z</dc:date>
    <item>
      <title>Toolbox as geoprocessing service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328560#M11546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a toolbox using a Model builder and than using ARCGIS server Manager published this on the server as geoprocessing service. the URL of the service is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://na-lap-3z8/ArcGIS_server/services/Toolboxes_Lesson1/GPServer"&gt;http://na-lap-3z8/ArcGIS_server/services/Toolboxes_Lesson1/GPServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I wish to access this service using the python. I used following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;arcpy.ImportToolbox("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://na-lap-3z8/ArcGIS_server/rest/services;Toolboxes_Lesson1" rel="nofollow" target="_blank"&gt;http://na-lap-3z8/ArcGIS_server/rest/services;Toolboxes_Lesson1&lt;/A&gt;&lt;SPAN&gt;","abc")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however i received the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.ValueError'&amp;gt;: Error opening Toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The folder where this toolbox is shared and can be seen from the ARCGIS manager. Any clue what is wrong in my code or what should i do to access this GP service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 16:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328560#M11546</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2012-10-03T16:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbox as geoprocessing service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328561#M11547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're close.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;arcpy.ImportToolbox("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://na-lap-3z8/ArcGIS_server/services;Toolboxes_Lesson1" rel="nofollow" target="_blank"&gt;http://na-lap-3z8/ArcGIS_server/services;Toolboxes_Lesson1&lt;/A&gt;&lt;SPAN&gt;","abc")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also see this for more info: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 18:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328561#M11547</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-10-03T18:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Toolbox as geoprocessing service</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328562#M11548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You're close.&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;arcpy.ImportToolbox("http://na-lap-3z8/ArcGIS_server/services;Toolboxes_Lesson1","abc")&lt;BR /&gt;&lt;BR /&gt;Also see this for more info: &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_a_geoprocessing_service_in_Python_scripts/00570000004w000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanx it worked for me . however when i run following code:I can see status return by the server is 4 and also in the result window of the arcmap i can see a file is created. however when result1.getOutput(0) fails showing the following&amp;nbsp; error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &amp;lt;type 'exceptions.RuntimeError'&amp;gt;: ResultObject: Error in getting output&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my code is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;result1= arcpy.abc.suitablelandfromparammodel(cities,"5 miles","5 miles",boundry,roads)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while result1.status &amp;lt;4:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; print result1.status&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; time.sleep(0.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print "execution finished"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;result1.getMessages()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CopyFeatures_management(result1.getOutput(0),'localresult.shp')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any idea what is reason&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nadeem&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 15:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/toolbox-as-geoprocessing-service/m-p/328562#M11548</guid>
      <dc:creator>NadeemQazi</dc:creator>
      <dc:date>2012-10-04T15:54:45Z</dc:date>
    </item>
  </channel>
</rss>

