<?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: Arcgis Pro - OVERWRITE existing Standalone Service with python in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/569#M22</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you read through&amp;nbsp;&lt;A href="https://community.esri.com/thread/216491-automate-overwrite-web-layer-feature-class"&gt;https://community.esri.com/thread/216491-automate-overwrite-web-layer-feature-class&lt;/A&gt;&amp;nbsp;and tried the example(s) provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2020 18:42:30 GMT</pubDate>
    <dc:creator>KoryKramer</dc:creator>
    <dc:date>2020-07-16T18:42:30Z</dc:date>
    <item>
      <title>Arcgis Pro - OVERWRITE existing Standalone Service with python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/568#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/289023"&gt;arcgis pros1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Arcgis Pro - OVERWRITE existing Standalone Service using python&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/help/sharing/overview/overwrite-a-map-service.htm#:~:text=In%20the%20Catalog%20pane%2C%20on,service%20you%20want%20to%20overwrite.&amp;amp;text=On%20the%20Select%20Map%20dialog,Overwrite%20Map%20Service%20pane%20appears."&gt;The current process in Arcgis Pro (Manual Only)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have and existing service published to standalone Arcgis server 10.6 that is cached, and I want to automate an Overwrite process that retains&amp;nbsp;the cache but replaces the base data I use for popups.&amp;nbsp; I've been doing this for years and its simple in arcmap ... Its also simple in Arcgis Pro if I right click on the service and use the Overwrite function - but I need to automate in notebook this but there does not appear to be anything in python to do this .. Or have I missed a&amp;nbsp; process?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed some threads with various leads .. but so far I have been unsuccessful...&amp;nbsp; &amp;nbsp;I can create a sddraft and an sd for the service with the new content - but when I try UpLoadServiceDefniition .. it fails with service already exists but I cannot seem to find any switch to allow it overwrite ?&lt;/P&gt;&lt;P&gt;In the future I will be doing this with hosted features on my portal - but for the moment this is not an option for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers would be hugely helpful please...&amp;nbsp; my efforts so far have not been successful.&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;Paulg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:30:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/568#M21</guid>
      <dc:creator>jonathanharte</dc:creator>
      <dc:date>2020-07-15T15:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis Pro - OVERWRITE existing Standalone Service with python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/569#M22</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you read through&amp;nbsp;&lt;A href="https://community.esri.com/thread/216491-automate-overwrite-web-layer-feature-class"&gt;https://community.esri.com/thread/216491-automate-overwrite-web-layer-feature-class&lt;/A&gt;&amp;nbsp;and tried the example(s) provided?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 18:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/569#M22</guid>
      <dc:creator>KoryKramer</dc:creator>
      <dc:date>2020-07-16T18:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis Pro - OVERWRITE existing Standalone Service with python</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/570#M23</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following the general 3-step process I've seen in so many ESRI examples - Draft-Stage-Upload, the overwriting puzzled me until I added the line high lighted below:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Create MapImageSharingDraft and set service properties&lt;/SPAN&gt;
sharing_draft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getWebLayerSharingDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FEDERATED_SERVER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MAP_IMAGE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; service&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;##############################################################################&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#The following line governs whether the new draft is used to overwrite the existing services&lt;/SPAN&gt;
sharing_draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteExistingService &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;##############################################################################&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
sharing_draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_output_filename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    
&lt;SPAN class="comment token"&gt;# Stage Service&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;StageService_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_output_filename&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sd_output_filename&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;# Share to portal&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;inSdFile&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inServiceName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;inCluster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inFolderType&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inFolder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inStartup&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inOverride&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inMyContents&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inPublic&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact&amp;nbsp;details may be different in your environment.That's why I've stripped it down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:02:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-overwrite-existing-standalone-service/m-p/570#M23</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-10T20:02:35Z</dc:date>
    </item>
  </channel>
</rss>

