<?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: Overwrite service using PublishingTools/GPServer/Publish Service Definition REST API in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123244#M31801</link>
    <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the latest version of ArcGIS Pro, the overwrite functionality is provided.&lt;/SPAN&gt;&lt;SPAN&gt; You shouldn't really interface with System/PublishingTools as it alters properties in your&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Portal and destination ArcGIS Server. Documentation is probably limited to ESRI Inc developers and those who can traverse the server's arcgissystem directories. The code is probably minified/uglified anyway..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What happens when you use an application interface like ArcGIS Pro/ArcMap (or Python APIs e.g. arcpy, arcgis ) is the tool will call a number of&amp;nbsp;&lt;SPAN&gt;PublishingTools/GPServer GPTasks to make updates to your Portal and destination ArcGIS Server.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To overwrite, you can manually change the service defintion draft and restage the draft by adding in specific xml tags which indicate to the&amp;nbsp;PublishingTools/GPServer/Publish Service Definiton GPTask to overwrite instead of publish. You can use the CreateSDDraft tool to see how that is written and apply it to an existing SD file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this info provides some insight &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 04:56:50 GMT</pubDate>
    <dc:creator>LongDinh</dc:creator>
    <dc:date>2021-12-07T04:56:50Z</dc:date>
    <item>
      <title>Overwrite service using PublishingTools/GPServer/Publish Service Definition REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123239#M31800</link>
      <description>&lt;P&gt;Hi, I see there's a parameter named "in_publish_options" for&amp;nbsp;PublishingTools/GPServer/Publish Service Definition. Is it possible to use this to set the flag to overwrite the service as ArcGIS Desktop provides? I tried to look at what Desktop does with fiddler but all the services calls are SOAP binary so I didn't see what parameters and values were sent. I haven't seen any documentation for this parameter yet...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 03:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123239#M31800</guid>
      <dc:creator>AndyArismendi1</dc:creator>
      <dc:date>2021-12-07T03:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite service using PublishingTools/GPServer/Publish Service Definition REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123244#M31801</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the latest version of ArcGIS Pro, the overwrite functionality is provided.&lt;/SPAN&gt;&lt;SPAN&gt; You shouldn't really interface with System/PublishingTools as it alters properties in your&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Portal and destination ArcGIS Server. Documentation is probably limited to ESRI Inc developers and those who can traverse the server's arcgissystem directories. The code is probably minified/uglified anyway..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What happens when you use an application interface like ArcGIS Pro/ArcMap (or Python APIs e.g. arcpy, arcgis ) is the tool will call a number of&amp;nbsp;&lt;SPAN&gt;PublishingTools/GPServer GPTasks to make updates to your Portal and destination ArcGIS Server.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To overwrite, you can manually change the service defintion draft and restage the draft by adding in specific xml tags which indicate to the&amp;nbsp;PublishingTools/GPServer/Publish Service Definiton GPTask to overwrite instead of publish. You can use the CreateSDDraft tool to see how that is written and apply it to an existing SD file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope this info provides some insight &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 04:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123244#M31801</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-12-07T04:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite service using PublishingTools/GPServer/Publish Service Definition REST API</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123245#M31802</link>
      <description>&lt;P&gt;Thanks! I used to use ArcPy's UploadServiceDefinition but sometimes it fails with 99999 invalid URL and I've had more consistency calling the APIs it calls directly (the process is in the link below).&lt;/P&gt;&lt;P&gt;Thanks for pointing me to the service definition, it looks like this is what I'm looking for -&lt;/P&gt;&lt;P&gt;Change: &amp;lt;Type&amp;gt;esriServiceDefinitionType_New&amp;lt;/Type&amp;gt;&lt;/P&gt;&lt;P&gt;To: &amp;lt;Type&amp;gt;esriServiceDefinitionType_Replacement&amp;lt;/Type&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/337709/publishing-service-using-service-definition-file-sd-through-the-arcgis-rest-ap" target="_blank"&gt;https://gis.stackexchange.com/questions/337709/publishing-service-using-service-definition-file-sd-through-the-arcgis-rest-ap&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 05:47:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/overwrite-service-using-publishingtools-gpserver/m-p/1123245#M31802</guid>
      <dc:creator>AndyArismendi1</dc:creator>
      <dc:date>2021-12-07T05:47:32Z</dc:date>
    </item>
  </channel>
</rss>

