<?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: How to publish a map service via script with &amp;quot;Shared Instances&amp;quot; in 10.7 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/99892#M3865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that at 10.7 is still not possible to publish a service to a shared instance. Once is published, you can change the instance type. There is a new operation in the admin rest api: ChangeProvider, using this operation (to DMaps), and editing the service json to modify mininstances (0), maxinstances (0) and Provider (Dmaps), the service´s instance type is changed. &lt;/P&gt;&lt;P&gt;I couldnt find documentation of this new operation, and how to programatically change this via a script, yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2019 18:55:00 GMT</pubDate>
    <dc:creator>SebastianCabrera</dc:creator>
    <dc:date>2019-04-25T18:55:00Z</dc:date>
    <item>
      <title>How to publish a map service via script with "Shared Instances" in 10.7</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/99891#M3864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a python script to upload a sddraft xml file from ArcGIS Pro to a standalone 10.7 arcgis server that would enable the "Shared Instances" option on the service. So far, everything works, but when I enable the settings to allow shared instances, the map service throws some errors while publishing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script modifies the xml document to set the keys to the following:&lt;/P&gt;&lt;P&gt;provider - DMaps&lt;/P&gt;&lt;P&gt;MinInstances - 0&lt;/P&gt;&lt;P&gt;MaxInstances - 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is what I have found the instance JSON properties on the server get set to. Is there something else to modify in the sddraft xml file to get this working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;arcgisscripting.ExecuteError: ERROR 001487: Failed to update the published service with the server-side data location. Please see the server's log for more details.&lt;/P&gt;&lt;P&gt;ERROR 001369: Failed to create the service.&lt;/P&gt;&lt;P&gt;Failed to execute (Publish Service Definition).&lt;/P&gt;&lt;P&gt;Failed.&lt;/P&gt;&lt;P&gt;Failed to execute (UploadServiceDefinition).&lt;/P&gt;&lt;P&gt;&amp;nbsp;Failed to execute (PublishProMapToServer).&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see some other messages in the error logs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;12:17:08 - Failed to rename cache folder.&lt;/P&gt;&lt;P&gt;12:17:08 - Error executing tool. PublishServiceDefinition Job ID: j16be642f02d74b42b63c03c41765b958 : ERROR 001487: Failed to update the published service with the server-side data location. Please see the server's log for more details. ERROR 001369: Failed to create the service. Failed to execute (Publish Service Definition).&lt;/P&gt;&lt;P&gt;12:17:08 - Failed to create the service.: Invalid at the top level of the document.&lt;/P&gt;&lt;P&gt;12:17:08 - Service rename is complete.&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2019 17:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/99891#M3864</guid>
      <dc:creator>roemhildtg</dc:creator>
      <dc:date>2019-04-19T17:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a map service via script with "Shared Instances" in 10.7</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/99892#M3865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that at 10.7 is still not possible to publish a service to a shared instance. Once is published, you can change the instance type. There is a new operation in the admin rest api: ChangeProvider, using this operation (to DMaps), and editing the service json to modify mininstances (0), maxinstances (0) and Provider (Dmaps), the service´s instance type is changed. &lt;/P&gt;&lt;P&gt;I couldnt find documentation of this new operation, and how to programatically change this via a script, yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 18:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/99892#M3865</guid>
      <dc:creator>SebastianCabrera</dc:creator>
      <dc:date>2019-04-25T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to publish a map service via script with "Shared Instances" in 10.7</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/1040159#M29803</link>
      <description>&lt;P&gt;I manage to add it by editing the sddraft and change the provider to DMaps&lt;/P&gt;&lt;P&gt;Here is an article that might help:&lt;BR /&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/move-services-to-shared-instances-using-python/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-enterprise/administration/move-services-to-shared-instances-using-python/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Mar 2021 13:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/how-to-publish-a-map-service-via-script-with-quot/m-p/1040159#M29803</guid>
      <dc:creator>kerenc</dc:creator>
      <dc:date>2021-03-24T13:06:50Z</dc:date>
    </item>
  </channel>
</rss>

