<?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: Publishing a geoprocessing toolBOX in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324010#M12447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea behind publishing a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;good&lt;/SPAN&gt;&lt;SPAN&gt; result, is that because it ran successfully in ArcMap, it has much higher odds of being successful as a service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It makes more sense to do the dev/testing inside ArcMap with a local tool than it does to publish a service and modify that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally by publishing a result, we're able to help enforce best practices and modify tools/scripts/models that otherwise wouldn't have published successfully. Once something is a service and you modify it, we have no way to help with best practices or warn if something isn't supported. When you do all your dev work up front and publish the result (hopefully you only need to publish once), we're able to tell you what might be wrong with it and suggestion action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I dont really suggest this, if you're only making minor edits to your script, you can modify the script which gets moved to the Server (understanding that these edits dont persist back to your original script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd find the script powering your GP Service at: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;service name&amp;gt;.GPServer\extracted\v101\&amp;lt;original folder that held toolbox name&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 16:14:52 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2012-07-03T16:14:52Z</dc:date>
    <item>
      <title>Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324009#M12446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see how i can publish a gp tool by creating the tool, running it in arcmap, and then selecting the results and clicking Share As...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That creates an sd file that i can then use in ags manager to publish my tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that i have a toolbox with 30 tools in it. I don't want to run all 30 and go through this process. Can't i just publish the entire toolbox somehow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, why the change in publishing gp services? I liked being able to go into catalog, connect to my ags, then right click and add new service based on a python scripted tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that seemed like a great workflow because i could then edit the python script in the background without having to reup my service (unless i changed params).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that under the new workflow I cannot modify my python script without having to open arcmap and rerun everything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This will add much time to my dev process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 13:37:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324009#M12446</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-07-03T13:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324010#M12447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The idea behind publishing a &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;good&lt;/SPAN&gt;&lt;SPAN&gt; result, is that because it ran successfully in ArcMap, it has much higher odds of being successful as a service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It makes more sense to do the dev/testing inside ArcMap with a local tool than it does to publish a service and modify that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally by publishing a result, we're able to help enforce best practices and modify tools/scripts/models that otherwise wouldn't have published successfully. Once something is a service and you modify it, we have no way to help with best practices or warn if something isn't supported. When you do all your dev work up front and publish the result (hopefully you only need to publish once), we're able to tell you what might be wrong with it and suggestion action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I dont really suggest this, if you're only making minor edits to your script, you can modify the script which gets moved to the Server (understanding that these edits dont persist back to your original script).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You'd find the script powering your GP Service at: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\arcgisserver\directories\arcgissystem\arcgisinput\&amp;lt;service name&amp;gt;.GPServer\extracted\v101\&amp;lt;original folder that held toolbox name&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 16:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324010#M12447</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-07-03T16:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324011#M12448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the prompt answer Kevin. I have to say that is a little disappointing. As a developer I expect 'best practices' to be a document that i can digest and choose to follow - not a directive from the software telling me what i have to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The architecture you describe creates a deployment nightmare for me. Now i am required to completely replicate the target environment in order to publish what you consider to be a 'good' tool. There are perfectly valid scenarios were it makes more sense to publish a service and modify that on the target environment. It appears that option has been taken away from us. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For one project alone I have 30 custom python Script Tools. You are telling me that for a single deploy I need to run each of those in ArcMap and then publish the results or add them as tasks to an already existing service and then overwrite that. And if i have a fix for just one of those scripts I am now expected to edit that locally, retest all 30 in ArcMap and then overwrite the published service? And if that is a remote environment without ArcMap I have several more steps to create the sd file move it to the remote environment and then republish there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So a single bug fix that used to require only an edit to a py file now requires much, much more. Additionally, this republish is going to kick out every user who happens to be using any one of those 30 tasks at the time?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think perhaps that I am just confused. I'm sure there is a simple explanation and I'm just overlooking it. Could you correct me and point out the simple path to custom tool deployment that doesn't involve ArcMap and Results?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 17:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324011#M12448</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-07-03T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324012#M12449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please let me clarify some statements:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I say best practices, I mean best practices being suggestions, and the addition of trapping for the things which prevent your service from working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best practices appear as warnings and messages in the analyzer and others are the errors which wont allow you to publish the service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Warnings and messages are something you (the service publisher) can chose to ignore or implement. We don't force these on you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand your concern with re-running and adding 30 tool executions into a task. Honestly, throughout beta nobody came to us with more than 3 or 4 tasks per service presenting a concern regarding running this many tools. To me, 30 seems like a lot of tasks on a single machine, but if you're deploying that many then you must have the system resources to deal with that many running instances.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this point all I can do is offer you some suggestions to reduce the time it takes to republish 30 tasks. Hopefully you can make use of one of these in your publishing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) In the Geoprocessing Options in ArcMap (Geoprocessing &amp;gt; Options), you can set Results Management to "Never Delete".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With this setting, run every tool you want to publish, you'll get a result for each&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Save the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anytime you want to republish the service, you simply need to open that MXD, run the updated tool, and then put together the service with a combination of old/new results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;This method is also handy as if any data required for the service has gone missing, the analyzers should catch it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Go to Windows&amp;nbsp; &amp;gt; ArcMap options &amp;gt; Sharing Tab &amp;gt; check "show file location when saving draft service definitions"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Run all of the tools you want to publish (you'll get a result for each)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Get into the Service Editor by sharing a result as a service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Add all your Results into the service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Click the "x" on the service editor, and say YES to saving a draft.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note where the draft file gets saved to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can re-open these and add or remove results from it later (when you need to update).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: The .SDDRAFT files act more like pointers, so if you start moving tools/data from where they were when you originally saved, you could break references.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) For 10.1 sp1 we're working on a pythonic (arcpy) way to publish gp services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is early in the testing and looks good so far, but till its 100% I can't guarantee it'll make sp1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In short, you could write a runner or execution script to power you through the publishing process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script calls each toolbox/task, runs it, assigning each to its own result object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You take each result object and pass it into arcpy.GPCreateSDDraft([list of result objects], , , ) - new function, then Analyze it, Stage it into a .SD, and finally Upload. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This entire workflow has been well documented and exists for Maps. Like I said, we're working on it for 10.1 sp1 in terms of GP. Hopefully it'll come together like we want.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 18:23:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324012#M12449</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-07-03T18:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324013#M12450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the quick reply Kevin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like this may not be so bad after all. Just noticed your ArcGIS Server Administration Toolkit, that should help as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We do maintain a significant number of geoprocessing tasks and i think running them all in arcmap is going to be the toughest part.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it seems like esri is moving in the right direction in terms of allowing python programmers greater control of the processes involved in make gp services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And i also like that fact that the more 'wizard'-like tools (like publishing from arcmap) seem to use scripting and services at their heart.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again for the suggestions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 16:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324013#M12450</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-07-05T16:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324014#M12451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to agree with KG22. This new publishing method has made deployment of our internal system a NIGHTMARE!!! This process has now introduced SO many more steps to what used to be a relatively seamless and simple process because of the number of scripts contained in my toolbox. I also have a number of scripts in a toolbox that are dependent on outputs from other scripts or json inputs from our front-end that make running each one before publishing extremely painful, and frankly, a waste of time! By doing this, ESRI has single handidly increased my workload and time it takes to do my job. I have also noticed that when publishing my scripts, ESRI takes it upon themselves to REWRITE my code in the service directory, which I have found actually causes some of my script to FAIL as GP services....WHAT!!!!!!! That is a HUGE no no to me. DO NOT CHANGE MY CODE!!!!!!!!!!!!!!!!!!! Please fix this in SP1, as I am extremely disappointed with the change!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324014#M12451</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2012-08-22T14:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324015#M12452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hopefully this will be addressed in sp1 with a way to deploy scripts directly from python. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The idea of esri "running" my script and determining if it will work and is optimized is anathema to the development process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have over 10 years experience in jumping through hoops to get software to work - that is being challenged now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess one way around this (that we are kicking around now) is to publish a (basically) blank python script the way esri suggests (via map results) and then hunt down where ags has copied and hidden the script and go there and edit the script to be what you want. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That strategy is probably not going to work well if you have to modify input/output parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324015#M12452</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-22T14:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324016#M12453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;KG22, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is funny that you mentioned the workaround of publishing a blank script and then editing the file in the service directory. That is exactly what we have done as well. We just create a script that does nothing but import the arcpy module and then publish that, and edit the python file with the proper code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324016#M12453</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2012-08-22T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324017#M12454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think we are going to go the route of converting to the new native python toolboxes rather than the older 10.0 way of py scripts tied to tools. It seems esri is going in that direction so might as well get on board. if we can publish them directly from python that will take desktop out of the picture and be very nice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can understand wanting the script to be runable because it makes debugging a little easier because you are in arcmap. But there are scripts that are just too complex to be setup in arcmap to run every time you want to make a small change.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324017#M12454</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-22T14:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324018#M12455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I have also noticed that when publishing my scripts, ESRI takes it upon themselves to REWRITE my code in the service directory, which I have found actually causes some of my script to FAIL as GP services....WHAT!!!!!!! That is a HUGE no no to me. DO NOT CHANGE MY CODE!!!!!!!!!!!!!!!!!!! Please fix this in SP1, as I am extremely disappointed with the change!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only code change we make to scripts is the insertion of variables for data (and sometimes sql expressions). Since part of the new publishing processes is a mechanism to ensure all data required by the service can be found and is available, we need to update the paths.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're encountering an instance where we didn't update the paths to data correctly, or didnt copy data over that was required then I'd be very interested in fixing it. Is there any chance you can share the tool/script/some data with me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately based on timing, we're getting SP1 pretty locked down. I'd need to be able to reproduce the issue here in house and get a fix for it before Friday to have any chance at SP1 - else it would probably be next service pack. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can share, feel free to email me directly at &lt;/SPAN&gt;&lt;A href="mailto:khibma@esri.com"&gt;khibma@esri.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:32:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324018#M12455</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-08-22T14:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324019#M12456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got to agree with Kevin Gross, and Aaron Barkhurt. I hope some ESRI employees read this thread because you guys really seem to have dropped the ball on 10.1 when it comes to publishing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first complaint with publishing is that you cannot publish an arcobjects executable as a GPService on an ArcServer. This is a major regression. I don't believe it's your place to say if it's a security vulnerability or not. That's up to our team. I wasted 2 expensive support tickets to find out that you can't publish an executable. I ended up having to wrap it in a python script calling my executable as a sub-process. It feels hacky to say the least.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also agree with everything that Aaron Barkhurst said about publishing python GP scripts. Changing my code at publish time is an insult to the developer. You guys seem to be catering to a crowd who is not interested in learning arcpy or programming in general at the expense of power users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Model Builder is a useless tool. It may look good on your powerpoint slides at the ESRI conference but it promotes not learning how to program. Organizations that use model builder can be found using tools like Entity Framework and DevExpress. Your code is likely very weakly tested and buggy. Enforcing the publishing successful of results is just catering to this crowd, again, at the expense of power users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a ton of python classes and libraries and encapsulating them into their own working directory at publish time just does not work, especially when publishing to the ArcServer is rewriting my code and changing paths and directories. We ended up doing the same thing listed above. Which is to just publish a dummy python script and then going into the ArcServer system folders and copying in the real script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are now tasked with trying to implement a continuous integration pipeline from source control to published gp services on our development ArcServer. If it's able to be done it's going to be very hacky.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I will end by saying this. ESRI should be giving developers tools that empower them and make their lives easier, and not boxing them in because some people are too lazy to learn.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;10.1 has got me interested in looking into PostGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2012 14:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324019#M12456</guid>
      <dc:creator>MattMoyles</dc:creator>
      <dc:date>2012-08-22T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324020#M12457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am in the same boat here. Horrible experience just trying to publish a simple toolbox with three tools in it. Analysis takes 30 minutes. Publish takes an hour. And that is for ANY change i make in ANY script in those 3 tools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How is this possibly a working solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could create separate services for each tool but that is overkill. These tools are related and should go in a toolbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sp1 didn't improve upon anything. The script solution adds many, many more steps into the process. I have to save out results, create an sddraft, turn that into and sd, take that and then publish it? Come on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 12:44:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324020#M12457</guid>
      <dc:creator>KeG</dc:creator>
      <dc:date>2013-05-29T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324021#M12458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'd like to add by 0.02 and provide a workaround for those struggling with this problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I agree with many of the previous posters that the process for deploying GP tools to server is extremely kludgy and unnecessarily burdensome. It's un-intuitive (publish from the result of a tool run?), and makes a number of problematic assumptions: namely that you're deploying from a machine with ArcGIS Desktop, that you're deploying individual tools, not toolboxes (unless I've missed an option?), and that the tools are even intended to run in a Desktop environment. Additionally, the extra burden to deploy tools does very little to ensure tools are fully functional before deployment. Any tool with even a bit of complexity will have multiple execution paths and what may succeed with one set of inputs may fail with another. The only way to ensure the functionality of all execution paths is to write good tests, and frankly you can't force people to do that; they either will or they won't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, for a workaround. You can by-pass the whole run-&amp;gt;puslish-from-result process by using the ArcGIS Server REST API. If your sources are already present on the target server (e.g., my deployment process involves pulling sources from a Mercurial repository onto the target server), then you can POST to the "createService" admin endpoint with JSON-formatted service info to create the service (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/server-admin-api/createService.html"&gt;http://resources.arcgis.com/en/help/server-admin-api/createService.html&lt;/A&gt;&lt;SPAN&gt;) and then POST to the "startService" admin endpoint (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/server-admin-api/startService.html"&gt;http://resources.arcgis.com/en/help/server-admin-api/startService.html&lt;/A&gt;&lt;SPAN&gt;) to start the previously created service. Wrap this all up into a deploy script and you'll be set.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your sources aren't already on the server, I imagine you could use the upload API to get them to the server, though I haven't tried this approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server is sort of finicky about creating and starting services, so be prepared for a bit of trial and error. Often, if you get something wrong, it will let you create the service, but you won't be able to start the service. If your service fails to start, check the server log for clues about why. I found that the "outputDir" and "virtualOutputDirectories" parameters are actually required despite being reported as "optional" by the API docs. If you create your service without those parameters, then it will fail to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, and happy deployments!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;_Nik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 22:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324021#M12458</guid>
      <dc:creator>NikolasStevenson-Molnar</dc:creator>
      <dc:date>2013-06-25T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324022#M12459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree with these posts. Publishing Python GP Tasks has become a big pain under 10.1. I now routinely create two scripts, the real one and a dummy one with just the input and output parameters. I publish the dummy and replace it with the real one once published. This saves me some time in publishing but I still can't publish a toolbox at once like I did in 10.0. It shouldn't have to work that way. Why can't I be trusted to test and debug my own scripts? Please give those of us who know what we are doing to ability to force publish a toolbox as is!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324022#M12459</guid>
      <dc:creator>DaveHighness</dc:creator>
      <dc:date>2013-06-26T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324023#M12460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Couldn't agree more with the last two posts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You made some great points _Nik and thank you very, very much for those tips.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;between your method and Dave's that's two new ways around this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have resorted to going back to the old tbx method and am not using the pyt python toolbox that i was so looking forward to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could never get the calls out to resources to work the way i wanted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 45 gp tools that i need to publish and the pyt file would be enormous if i used it as anything other than just a placeholder for params and a pointer to py files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To publish those 45 tools took me over 5 days! That is cost to me and to my clients. Now i have a (precious) mxd with successful results for every one of them. However, i had to publish them all as separate services because i couldn't just publish a toolbox. This is clutter in my services directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI needs to undo this in my opinion. I think they were going for a level of handholding that will allow casual desktop users to start cranking out services. But that is not the way i use the software. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And there is a marked difference between a gp script that is designed for desktop and one designed for ags publishing. they need to recognize that and split the workflows - not try to incorporate them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 15:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324023#M12460</guid>
      <dc:creator>KeG</dc:creator>
      <dc:date>2013-06-26T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324024#M12461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am scared of reading all the threads. We have developed custom geoprocessing tools using ArcObjects by extending &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocessing framework. We have 70+ tools with wide variety of inputs. This tool box has been published as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocessing service in ArcGIS Server 10.0. This was simple and straightforward exercise.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I dont think this can be done easily in ArcGIS Server 10.2 version. I am still figuring out the way to achieve this. if any one has some experience please point me on this. Our plan to migrate to 10.2 is mainly depend on this. I cannot run a each tool and generate a result and share them as service is NOt possible, because every tool input might be different based on work flow. I dont see this as a alternative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please throw some light on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 22:01:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324024#M12461</guid>
      <dc:creator>LakshmananVenkatesan</dc:creator>
      <dc:date>2014-03-13T22:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324025#M12462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't like the new deployment either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our normal workflow is that we develop the tools in our system and later publish the well ready developed and well tested at our customer. Especially when deploying at the customer a too complicated and too long workflow does not make us look good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have another ugly thing with publishing. Our Scripts normally contain several files, the script itself, a config script and a general helper script. The last ones are imported in the first one. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Publishing the script copies only the script itself but not the other files, so after publishing executing the script fails.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to manually copy the files into the path Kevin mentioned earlier.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have registered the path where the scripts came from as data store, but this does not prevent the copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 12:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324025#M12462</guid>
      <dc:creator>AndreasRuloffs1</dc:creator>
      <dc:date>2014-04-02T12:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing a geoprocessing toolBOX</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324026#M12463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with these post, but I think that Nikolas give us the best option. Actually I use the "createService" rest service method on the root or desire ArcGIS Server folder. Like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://apcpr45:6080/arcgis/admin/services/GeoRED_Tools/createService" title="http://apcpr45:6080/arcgis/admin/services/GeoRED_Tools/createService"&gt;http://servername:6080/arcgis/admin/services/foldername/createService&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the attach json code to publish a tbx file. This tbx has a lot of tools that reference to many others python scripts. All of this are located into a registered folder to ensure that ArcGIS Server has permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process give me the best way to publish tbx.&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;Dani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 10:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-geoprocessing-toolbox/m-p/324026#M12463</guid>
      <dc:creator>DanielGarcia</dc:creator>
      <dc:date>2014-09-02T10:37:24Z</dc:date>
    </item>
  </channel>
</rss>

