<?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 Map Service by Copy to Referenced Registered Folder in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005650#M264</link>
    <description>&lt;P&gt;Hi Krystal,&lt;/P&gt;&lt;P&gt;We have been having issues using the overwrite tool in general.&lt;/P&gt;&lt;P&gt;A method we have used to overcome this is the rename function via the server admin endpoint.&lt;/P&gt;&lt;P&gt;We re-publish the service using the same name with an "_new" at the end, such as "service_new". After testing the service to make sure it is functioning as we would like, we then rename the old service to have an "_old" and then remove the "_new" from the new service. After this we change the portal item IDs of the new service to match the old, remove the old service, then remove any new portal items that were generated in the process.&lt;/P&gt;&lt;P&gt;This means we only have a small outage on the service and are able to maintain the service name and portal item IDs.&lt;/P&gt;&lt;P&gt;Alternatively (I have not tried this for republishing but may be worth investigating), a service can be manipulated by retrieving the MSD file on the server, extracting (I use the 7zip software), manipulating the xml files which are extracted, then compressing again (using zip format and naming as a .MSD), replacing the .MSD on the server and restarting the service. We have managed to add in datum transformation information to the map.xml. There is xml files there specifically for the data.&lt;/P&gt;&lt;P&gt;Good luck and all the best&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
    <pubDate>Mon, 30 Nov 2020 20:47:05 GMT</pubDate>
    <dc:creator>DanielMcCullock2</dc:creator>
    <dc:date>2020-11-30T20:47:05Z</dc:date>
    <item>
      <title>Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1004875#M259</link>
      <description>&lt;P&gt;We have published a service mistakenly with the data copied to the server rather than by reference.&amp;nbsp; We moved the data to a registered folder on the server and tried to overwrite.&amp;nbsp; However, it continues to fail with an error 001369 Failed to Create the Service and Failed to execute (Publish Service Definition).&amp;nbsp; We are able to publish a new service as registered to the referenced folder.&amp;nbsp; Is there any reason why the overwrite should fail when going from non referenced/copied data to referenced data?&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 10.8.1&lt;/P&gt;&lt;P&gt;Publishing from Pro 2.6.2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MicrosoftTeams-image (7).png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1009iDC8A7BFE236A63DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="MicrosoftTeams-image (7).png" alt="MicrosoftTeams-image (7).png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 22:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1004875#M259</guid>
      <dc:creator>KrystalPhaneuf2</dc:creator>
      <dc:date>2020-11-25T22:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005641#M263</link>
      <description>&lt;P&gt;Hi Krystal,&lt;/P&gt;&lt;P&gt;When you publish a service to ArcGIS server, its service workspace is defined somewhere in the configuration store. Once the service has been published, there is no way to change this either through the interface or programmatically. I would suspect that simply trying to overwrite the service definition to point to a new service workspace would fail, as not just the features but also the service definition and manifest would need to be changed.&lt;/P&gt;&lt;P&gt;As you have already discovered, I would encourage you to publish a new service using the desired service workspace, and then update your service URLs to reflect the new service.&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 20:14:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005641#M263</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-11-30T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005650#M264</link>
      <description>&lt;P&gt;Hi Krystal,&lt;/P&gt;&lt;P&gt;We have been having issues using the overwrite tool in general.&lt;/P&gt;&lt;P&gt;A method we have used to overcome this is the rename function via the server admin endpoint.&lt;/P&gt;&lt;P&gt;We re-publish the service using the same name with an "_new" at the end, such as "service_new". After testing the service to make sure it is functioning as we would like, we then rename the old service to have an "_old" and then remove the "_new" from the new service. After this we change the portal item IDs of the new service to match the old, remove the old service, then remove any new portal items that were generated in the process.&lt;/P&gt;&lt;P&gt;This means we only have a small outage on the service and are able to maintain the service name and portal item IDs.&lt;/P&gt;&lt;P&gt;Alternatively (I have not tried this for republishing but may be worth investigating), a service can be manipulated by retrieving the MSD file on the server, extracting (I use the 7zip software), manipulating the xml files which are extracted, then compressing again (using zip format and naming as a .MSD), replacing the .MSD on the server and restarting the service. We have managed to add in datum transformation information to the map.xml. There is xml files there specifically for the data.&lt;/P&gt;&lt;P&gt;Good luck and all the best&lt;/P&gt;&lt;P&gt;Danny&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 20:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005650#M264</guid>
      <dc:creator>DanielMcCullock2</dc:creator>
      <dc:date>2020-11-30T20:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005672#M265</link>
      <description>&lt;P&gt;Thank you for the response Calvin.&amp;nbsp; Is this error expected because it was originally published as a copy and not by reference?&amp;nbsp; We are planning to test publishing from a referenced folder, then changing the source to SDE and overwriting.&amp;nbsp; I am expecting this should work. Am I wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 21:47:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1005672#M265</guid>
      <dc:creator>KrystalPhaneuf2</dc:creator>
      <dc:date>2020-11-30T21:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1072126#M447</link>
      <description>&lt;P&gt;Thanks Daniel, this approach is working well for us and this post helped me work up the courage to try it. I just wanted to add that this is working well for everything I've tried it on (map services and locators) with the exception of&amp;nbsp; composite locators with copied data. There appears to be an issue when renaming composite locators such that the service won't start afterwards. There are some absolute paths in the underlying service's .loc file that don't get updated after the rename. I've filed an issue with ESRI Canada.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 16:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1072126#M447</guid>
      <dc:creator>JohnGalambos</dc:creator>
      <dc:date>2021-06-24T16:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1072354#M448</link>
      <description>&lt;P&gt;That is fantastic to hear John. I am yet to play with composite locators, I hope you can get a resolution. Please let us know the outcome.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 22:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1072354#M448</guid>
      <dc:creator>DanielMcCullock2</dc:creator>
      <dc:date>2021-06-24T22:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1087722#M501</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;After this we change the portal item IDs of the new service to match the old, remove the old service, then remove any new portal items that were generated in the process.&lt;/P&gt;&lt;P&gt;This means we only have a small outage on the service and are able to maintain the service name and portal item IDs.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/236672"&gt;@DanielMcCullock2&lt;/a&gt;&amp;nbsp;, what method do you use for changing the Portal item ID?&amp;nbsp; AGO Assistant?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1087722#M501</guid>
      <dc:creator>DanMcCoy1</dc:creator>
      <dc:date>2021-08-10T22:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1087738#M502</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;We make the changes via the server admin endpoint.&lt;/P&gt;&lt;P&gt;If you click on the services you are working with and scroll down you will see the "Portal Properties" for the service.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielMcCullock2_0-1628636815077.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20591i3FE697F27976447E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielMcCullock2_0-1628636815077.png" alt="DanielMcCullock2_0-1628636815077.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you scroll to the bottom of the page you will be able to select the "edit" operation which will allow you to modify the json for the service. Something I have discovered recently is that for non hosted MapServers/FeatureServers, if the portal items are set to "derived" then the derived attribute should be removed. This may also be true for hosted but I have not tested.&lt;/P&gt;&lt;P&gt;Let me know if you need any further clarification &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Danny&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 23:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1087738#M502</guid>
      <dc:creator>DanielMcCullock2</dc:creator>
      <dc:date>2021-08-10T23:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1088079#M505</link>
      <description>&lt;P&gt;Ah, thanks.&amp;nbsp; Didn't realize you could do that from that endpoint.&amp;nbsp; I haven't found any documentation about it.&amp;nbsp; I wonder to what degree changing an items ID this way is supported by ESRI....?&lt;BR /&gt;&lt;BR /&gt;It actually changes the ID of the Map Image Layer item in Portal that's associated with the map service?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 19:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1088079#M505</guid>
      <dc:creator>DanMcCoy1</dc:creator>
      <dc:date>2021-08-11T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1088190#M506</link>
      <description>&lt;P&gt;No problem. I do not really know whether this method is supported. I also have not seen anything documented.&lt;/P&gt;&lt;P&gt;In regards to changing the IDs, think of the services on server and the Portal items as different entities. each item in Portal has its own ID and the link between the items and the services is the Item ID in the json of the service. The service also gets its access permissions via the portal item ID. You can have multiple portal items against a service but it will pull its permissions from the first one.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 22:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1088190#M506</guid>
      <dc:creator>DanielMcCullock2</dc:creator>
      <dc:date>2021-08-11T22:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Overwrite Map Service by Copy to Referenced Registered Folder</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1089986#M521</link>
      <description>&lt;P&gt;I can confirm we used the same approach as Daniel to manage the Portal items and it seems to be working well. Even though it's not documented, this stuff is also good to know even when not using the&amp;nbsp; _new/_old hot swap approach. Even a failed normal overwrite publish can result in multiple portal&amp;nbsp; items, a temporary service, and your original service associated with multiple portal items including the "derived" one.&amp;nbsp; Using this information you can clear up the portal items and remove the extra temporary service while still preserving your original service's Portal item id which is helpful in some situations.&lt;/P&gt;&lt;P&gt;Just an update related to the composite locator rename issue--there is now an open issue with ESRI:&amp;nbsp;BUG-000142148.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 15:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/overwrite-map-service-by-copy-to-referenced/m-p/1089986#M521</guid>
      <dc:creator>JohnGalambos</dc:creator>
      <dc:date>2021-08-18T15:52:44Z</dc:date>
    </item>
  </channel>
</rss>

