<?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>idea Overwrite ArcMap runtime services with ArcGIS Pro runtime based map using ArcGIS API for Python in ArcGIS API for Python Ideas</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/overwrite-arcmap-runtime-services-with-arcgis-pro/idi-p/1167236</link>
    <description>&lt;P&gt;I believe there is a functionality gap in ArcGIS API for Python &amp;amp; ArcPy in terms of overwriting services via Python while retaining existing service properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually, one is able to overwrite an ArcMap runtime service with a ArcGIS pro map via Pro GUI and retain all service properties however the same workflow is not easily possible via code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing the suggestion with a goal of&amp;nbsp; improving scripting ease of use for publishers and administrators.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Accessing a service's existing json via the rest api and changing its properties does not appear to be a safe or elegant method when changing from ArcMap to Pro runtime. Also it requires rest admin api access to be provided. A higher level esri api option is needed.&lt;/P&gt;&lt;P&gt;2. Bulk runtime update using esri runtime migration tools is also not a viable option as many map services need adjustments to symbology and other misc issues.&lt;/P&gt;&lt;P&gt;Please note that if you use the MapServiceDraft class to overwrite the service using snippet below, all the service's existing properties will be overwritten by default values&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;sddraft.targetServer = target_server_connection sddraft.overwriteExistingService = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm&lt;/A&gt;&amp;nbsp;- Review full snippet here&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 21:31:53 GMT</pubDate>
    <dc:creator>Subu_Swaminathan_GISP</dc:creator>
    <dc:date>2022-04-22T21:31:53Z</dc:date>
    <item>
      <title>Overwrite ArcMap runtime services with ArcGIS Pro runtime based map using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-ideas/overwrite-arcmap-runtime-services-with-arcgis-pro/idi-p/1167236</link>
      <description>&lt;P&gt;I believe there is a functionality gap in ArcGIS API for Python &amp;amp; ArcPy in terms of overwriting services via Python while retaining existing service properties.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manually, one is able to overwrite an ArcMap runtime service with a ArcGIS pro map via Pro GUI and retain all service properties however the same workflow is not easily possible via code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing the suggestion with a goal of&amp;nbsp; improving scripting ease of use for publishers and administrators.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Accessing a service's existing json via the rest api and changing its properties does not appear to be a safe or elegant method when changing from ArcMap to Pro runtime. Also it requires rest admin api access to be provided. A higher level esri api option is needed.&lt;/P&gt;&lt;P&gt;2. Bulk runtime update using esri runtime migration tools is also not a viable option as many map services need adjustments to symbology and other misc issues.&lt;/P&gt;&lt;P&gt;Please note that if you use the MapServiceDraft class to overwrite the service using snippet below, all the service's existing properties will be overwritten by default values&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;sddraft.targetServer = target_server_connection sddraft.overwriteExistingService = &lt;SPAN class=""&gt;True&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm&lt;/A&gt;&amp;nbsp;- Review full snippet here&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 21:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-ideas/overwrite-arcmap-runtime-services-with-arcgis-pro/idi-p/1167236</guid>
      <dc:creator>Subu_Swaminathan_GISP</dc:creator>
      <dc:date>2022-04-22T21:31:53Z</dc:date>
    </item>
  </channel>
</rss>

