<?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 Update services but keep current configuration in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664381#M51620</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am building a python script that will update some of our mapping services in the middle of the night to prevent any down time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully written all the code to create the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;SD Draft file&lt;/A&gt; and &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/stage-service.htm"&gt;SD file &lt;/A&gt;along with using the ‘&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm"&gt;UploadServiceDefinition_server&lt;/A&gt;’ tool to upload the service..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also define the service to be an ‘UPDATE’ by modifying the .sddraft XML file with '&lt;A _jive_internal="true" href="https://community.esri.com/thread/84201"&gt;esriServiceDefinitionType_Replacement&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My issue is&lt;/STRONG&gt; when I update the service all my other services settings are replaced with the defaults. I want to keep the existing configuration of that service in tact and just update the service with a new MXD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this using python tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 18:26:52 GMT</pubDate>
    <dc:creator>Drew</dc:creator>
    <dc:date>2017-04-04T18:26:52Z</dc:date>
    <item>
      <title>Update services but keep current configuration</title>
      <link>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664381#M51620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am building a python script that will update some of our mapping services in the middle of the night to prevent any down time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have successfully written all the code to create the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/createmapsddraft.htm"&gt;SD Draft file&lt;/A&gt; and &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/stage-service.htm"&gt;SD file &lt;/A&gt;along with using the ‘&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/server-toolbox/upload-service-definition.htm"&gt;UploadServiceDefinition_server&lt;/A&gt;’ tool to upload the service..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also define the service to be an ‘UPDATE’ by modifying the .sddraft XML file with '&lt;A _jive_internal="true" href="https://community.esri.com/thread/84201"&gt;esriServiceDefinitionType_Replacement&lt;/A&gt;'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My issue is&lt;/STRONG&gt; when I update the service all my other services settings are replaced with the defaults. I want to keep the existing configuration of that service in tact and just update the service with a new MXD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to do this using python tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 18:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664381#M51620</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2017-04-04T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Update services but keep current configuration</title>
      <link>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664382#M51621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This isn't addressing your specific problem, but possibly another way to achieve what you're looking to do is to query the JSON of the service from the Admin API, store it in a variable, publish the new service, and then overwrite the JSON with what you've stored. &amp;nbsp;If the only thing you're changing is some layers or other properties in the MXD, that may work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 23:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664382#M51621</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-04-04T23:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update services but keep current configuration</title>
      <link>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664383#M51622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp;Jonathan,&lt;/P&gt;&lt;P&gt;That's was the solution I had as plan B&amp;nbsp;but I was hoping there was a more elegant way strictly using some&amp;nbsp;arypy tools.&lt;/P&gt;&lt;P&gt;I appreciate the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 00:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-services-but-keep-current-configuration/m-p/664383#M51622</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2017-04-05T00:06:59Z</dc:date>
    </item>
  </channel>
</rss>

