<?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 Publishing a Service to ArcServer (10.3) via Python issue in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-service-to-arcserver-10-3-via-python/m-p/1877#M119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI-&lt;/P&gt;&lt;P&gt;I'm trying to re-publish a set of maps onto my ArcServer after making some changes to the MXDs.&amp;nbsp; My general process is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;1.&amp;nbsp; CreateMapSDDraft (primarily sending in the map DOC object of the MXD, the connection file path, and the type of&amp;nbsp; "ARCGIS_SERVER" )&amp;nbsp;&amp;nbsp; Here's the code:&amp;nbsp; arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service_name, 'ARCGIS_SERVER' , connection, True,serverFolder )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;2. Change some capability/configuration items and store off in a newSDDraft, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;3. Analyze the new SDDraft &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;4. Stage the new SDDraft to an SD file&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;5. Upload the new SD file.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The issue is that while it's not throwing errors while going through the process and does successfully re-publish, it doesn't pick up the currently existing capabilities and configurations (like the description). &amp;nbsp;&amp;nbsp; I have watched it shut down and restart the service so I know it's at least going through the motions.&amp;nbsp; It appears to just reset the defaults from the .MXD for the tags and whatnot, and the capabilities to the standard "KML" and "Map Server" as if the service had not been re-published.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I suspect the issue is in the CreateMapSDDraft where it all begins, but I've tested the URL I'm sending in for the service and can hit it in a browser along with all the other paths.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Any ideas ?!!?!?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2019 16:33:49 GMT</pubDate>
    <dc:creator>TadHammer1</dc:creator>
    <dc:date>2019-12-19T16:33:49Z</dc:date>
    <item>
      <title>Publishing a Service to ArcServer (10.3) via Python issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-service-to-arcserver-10-3-via-python/m-p/1877#M119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI-&lt;/P&gt;&lt;P&gt;I'm trying to re-publish a set of maps onto my ArcServer after making some changes to the MXDs.&amp;nbsp; My general process is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;1.&amp;nbsp; CreateMapSDDraft (primarily sending in the map DOC object of the MXD, the connection file path, and the type of&amp;nbsp; "ARCGIS_SERVER" )&amp;nbsp;&amp;nbsp; Here's the code:&amp;nbsp; arcpy.mapping.CreateMapSDDraft(mapDoc, sddraft, service_name, 'ARCGIS_SERVER' , connection, True,serverFolder )&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;2. Change some capability/configuration items and store off in a newSDDraft, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;3. Analyze the new SDDraft &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;4. Stage the new SDDraft to an SD file&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;5. Upload the new SD file.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The issue is that while it's not throwing errors while going through the process and does successfully re-publish, it doesn't pick up the currently existing capabilities and configurations (like the description). &amp;nbsp;&amp;nbsp; I have watched it shut down and restart the service so I know it's at least going through the motions.&amp;nbsp; It appears to just reset the defaults from the .MXD for the tags and whatnot, and the capabilities to the standard "KML" and "Map Server" as if the service had not been re-published.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I suspect the issue is in the CreateMapSDDraft where it all begins, but I've tested the URL I'm sending in for the service and can hit it in a browser along with all the other paths.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Any ideas ?!!?!?!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-a-service-to-arcserver-10-3-via-python/m-p/1877#M119</guid>
      <dc:creator>TadHammer1</dc:creator>
      <dc:date>2019-12-19T16:33:49Z</dc:date>
    </item>
  </channel>
</rss>

