<?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 a Service with registered data using a Service Defintion File in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1124043#M571</link>
    <description>&lt;P&gt;Yup your right, that version is for standalone servers, here is for the federated one,&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm#GUID-51F10F68-4B03-431C-B348-567F929963F7" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm#GUID-51F10F68-4B03-431C-B348-567F929963F7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tested it on a map service i published on our 10.8.1 enterprise setup, it works as expected and portal ids are retained after publishing the sd file.&lt;/P&gt;&lt;P&gt;This is for FS,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 22:07:01 GMT</pubDate>
    <dc:creator>ChrisPy</dc:creator>
    <dc:date>2021-12-08T22:07:01Z</dc:date>
    <item>
      <title>Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123292#M566</link>
      <description>&lt;P&gt;We would like to manage/publish our services on different environments with service definition files (SD files). However, I realised that it is not possible to overwrite an existing service with registered data by using an SD file (screenshot 1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is of course possible to delete the service and republish it. However, republishing the service like this changes the itemID of the corresponding portal-item. An existing web map which consumes this service will still work (probably because the rest-url of the service is still the same), but the newly published item can no longer be called in the overview page of the web map item, because the link still contains the old itemID (screenshot 2). This can be fixed by changing the ItemID of the service in the JSON configuration file of the web map item on the portal server. However, this workaround cannot be the proper solution.&lt;/P&gt;&lt;P&gt;Is there really no way to overwrite a service with registered data using an SD file without changing the ID of the corresponding portal item?&lt;/P&gt;&lt;P&gt;product-version: ArcGIS Enterprise 10.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig_1.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28972iE117FC01C6DA02A1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fig_1.jpg" alt="Fig_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Screenshot 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fig_2.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28973i627C63D3FB34E56D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Fig_2.jpg" alt="Fig_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 12:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123292#M566</guid>
      <dc:creator>TWickiSLU</dc:creator>
      <dc:date>2021-12-07T12:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123472#M567</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First of all... are you using a referenced feature service in Enterprise Portal or is this a hosted feature service?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123472#M567</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-07T18:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123558#M568</link>
      <description>&lt;P&gt;You probably are missing a step before uploading the service definition,&lt;/P&gt;&lt;P&gt;Check this article,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/publish-services.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/publish-services.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And you can also check this script in this arcticle for overwriting services,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm#GUID-F39810A0-180C-4E92-8030-16B760BB3178" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapservicedraft-class.htm#GUID-F39810A0-180C-4E92-8030-16B760BB3178&lt;/A&gt;&lt;/P&gt;&lt;P&gt;They talk about capability to overwrite so you dont have to lose your portal item ID.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 20:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123558#M568</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-12-07T20:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123762#M569</link>
      <description>&lt;P&gt;Thanks a lot for the response. Yes, I directly created the service definition file (.sd) and missed the step of creating a map service definition draft (.sddraft). The workflow works fine for a Standalone ArcGIS Server but when I use the script to create the draft for a &lt;STRONG&gt;Portal ArcGIS Server&lt;/STRONG&gt; the function «arcpy.sharing.CreateSharingDraft» returns an error indicating that the target server is not a standalone server.&lt;/P&gt;&lt;P&gt;In the script in this articel, &lt;A href="https://enterprise.arcgis.com/en/server/latest/develop/windows/example-publish-service-definitions-listed-in-a-text-file.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/develop/windows/example-publish-service-definitions-listed-in-a-text-file.htm&lt;/A&gt;, they delete and republish the service..&amp;nbsp; but then the ItemID of the Portal Item will probably change.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 12:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123762#M569</guid>
      <dc:creator>TWickiSLU</dc:creator>
      <dc:date>2021-12-08T12:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123763#M570</link>
      <description>&lt;P&gt;Hi, I’m using a referenced feature service in Enterprise Portal. The feature service is based on a database which is registered on the ArcGIS Portal Server.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 12:33:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1123763#M570</guid>
      <dc:creator>TWickiSLU</dc:creator>
      <dc:date>2021-12-08T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1124043#M571</link>
      <description>&lt;P&gt;Yup your right, that version is for standalone servers, here is for the federated one,&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm#GUID-51F10F68-4B03-431C-B348-567F929963F7" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/mapimagesharingdraft-class.htm#GUID-51F10F68-4B03-431C-B348-567F929963F7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tested it on a map service i published on our 10.8.1 enterprise setup, it works as expected and portal ids are retained after publishing the sd file.&lt;/P&gt;&lt;P&gt;This is for FS,&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 22:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1124043#M571</guid>
      <dc:creator>ChrisPy</dc:creator>
      <dc:date>2021-12-08T22:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite a Service with registered data using a Service Defintion File</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1124425#M573</link>
      <description>&lt;P&gt;Thanks a lot! It works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 16:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-a-service-with-registered-data-using-a/m-p/1124425#M573</guid>
      <dc:creator>TWickiSLU</dc:creator>
      <dc:date>2021-12-09T16:36:41Z</dc:date>
    </item>
  </channel>
</rss>

