<?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: Is it possible to republish GP-service automatically using Python? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297060#M22965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Come by the Analysis island in the Expo Tues/Wed/Thurs and look for me - we can chat about this.&lt;/P&gt;&lt;P&gt;I'm also presenting a Creating Geoprocesing Services session, but wont be going over exactly what you're asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 17:30:08 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2016-06-23T17:30:08Z</dc:date>
    <item>
      <title>Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297054#M22959</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;At the moment my users place mxds in a specific folder.&lt;/P&gt;&lt;P&gt;1) I publish these mxd's as map services.&lt;/P&gt;&lt;P&gt;2) In addition I have a have a GP-service that creates cad-files based upon the content of the mxd's (the service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have several mxd's, meaning several map services.&lt;/P&gt;&lt;P&gt;I only have on GP-model, but this is used for all the different map services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everytime the content of the mxd is changed, the map-service is republished.&lt;/P&gt;&lt;P&gt;In addition I then need to republish the GP-services. Otherwise the GP-service reference the wrong map content.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it somehow possible using Python to do this republishing of the GP-service automatically? As it is now I have to do it manually. Everytime the mxd is republished, I have to republish the GP-service manually. Sometimes I forget, meaning when my users exports to CAD from the web, they see one content in the map, and another content in the exported CAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards Anne.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 08:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297054#M22959</guid>
      <dc:creator>Anne_VendeløkkeOlsen</dc:creator>
      <dc:date>2016-04-04T08:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297055#M22960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is possible to publish a GP service using python.&amp;nbsp; We use python to publish all of our GP services, but it took quite a while to set it up and configure it for our infrastructure. If you decide to go down that road, let me know.&amp;nbsp; I might be able to provide you with some samples to get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you only have one GP service, it might not be worth the effort to automate publishing.&amp;nbsp; Your time might be better spent figuring out how to get the GP service to dynamically respond to work with the current content without having to republish each time.&amp;nbsp; What do you change each time?&amp;nbsp; Is it a layer naming issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 13:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297055#M22960</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-04-04T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297056#M22961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill.&lt;/P&gt;&lt;P&gt;At the moment I have one GP-service but my plan is to increase the number of GP-services &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The users mainly change the map content, meaning they add or remove a layer, rename another layer etc. I would really much like to get help with samples. Me writting to this forum is simple a matter of not beleiving that this is not possible. It should be possible somehow &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 18:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297056#M22961</guid>
      <dc:creator>Anne_VendeløkkeOlsen</dc:creator>
      <dc:date>2016-04-04T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297057#M22962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is possible.&amp;nbsp; The three main tools for publishing a mxd as a service is the arcpy.mapping.CreateMapSDDraft, Stage Service (Server), and the Upload Service Definition (Server) Tool.&amp;nbsp; You can run these tools in the order mentioned above in a python script to publish the mxd files as a service.&amp;nbsp; To publish the GP service, use arcpy.CreateGPSDDraft in place of arcpy.mapping.CreateMapSDDraft and the rest is the same as publishing mxd files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 19:42:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297057#M22962</guid>
      <dc:creator>AndrewKeith3</dc:creator>
      <dc:date>2016-04-06T19:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297058#M22963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anne,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you figure out how to "Republish" the service?&amp;nbsp; None of these answers specify the Auto-republish you originally asked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if I have to run that all again or if there is a separate "republish" workflow you discovered?&amp;nbsp; I have to point over 70+ services to new databases &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is lots of help on how to write scripts to auto publish services via python but not overwrite an existing Map Service and keep all the respective settings.&amp;nbsp; I wrote a python script to auto publish new Services and then use JSON and ArcGIS Admin API to configure those services to my environment.&amp;nbsp; That build process has limitations for "Republishing".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dylan Kennard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 14:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297058#M22963</guid>
      <dc:creator>DylanKennard</dc:creator>
      <dc:date>2016-06-21T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297059#M22964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dylan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I haven't come up with a good solution. I'm stuck. I'm attending this upcoming UC and hopefully I will find a qualified person that can answer my question. I will give you feedback if I find the answer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jun 2016 08:32:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297059#M22964</guid>
      <dc:creator>Anne_VendeløkkeOlsen</dc:creator>
      <dc:date>2016-06-22T08:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297060#M22965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Come by the Analysis island in the Expo Tues/Wed/Thurs and look for me - we can chat about this.&lt;/P&gt;&lt;P&gt;I'm also presenting a Creating Geoprocesing Services session, but wont be going over exactly what you're asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 17:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297060#M22965</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2016-06-23T17:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to republish GP-service automatically using Python?</title>
      <link>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297061#M22966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dylan,&lt;/P&gt;&lt;P&gt;At 10.4 we enhanced Server in regards to updating database connections. &lt;STRONG&gt;If&lt;/STRONG&gt; you're on 10.4, simply updating your datastore connection will update the reference for any service (feature, gp, etc) that referenced it.&lt;/P&gt;&lt;P&gt;This topic has more info: &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/linux/registering-your-data-with-arcgis-server-using-arcgis-for-desktop.htm#ESRI_SECTION1_01665D7E33384062B6A57DE89A52C2FA" title="http://server.arcgis.com/en/server/latest/publish-services/linux/registering-your-data-with-arcgis-server-using-arcgis-for-desktop.htm#ESRI_SECTION1_01665D7E33384062B6A57DE89A52C2FA"&gt;Register your data with ArcGIS Server using ArcGIS for Desktop—Documentation | ArcGIS for Server&lt;/A&gt;&amp;nbsp; (note that the GP Service has to have been published with 10.4 for this to work)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 17:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-it-possible-to-republish-gp-service/m-p/297061#M22966</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2016-06-23T17:32:36Z</dc:date>
    </item>
  </channel>
</rss>

