<?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 Automatically publishing services : The Version Management extension is not available on the ArcGIS Server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/automatically-publishing-services-the-version/m-p/1292983#M36067</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;In the process of automatically publishing services in different environments (DEV, INT, ACC, PRD) we have developed a python script. This script takes a Mapx file as input, imports it in an&amp;nbsp;&lt;SPAN&gt;ArcGISProject variable, performs every data connection replacements. Then the project is saved and used to create a sd_draft file that is finally configured to include Version Management extension (&lt;/SPAN&gt;&lt;SPAN&gt;"Enable VersionManagementServer : True" in sd_draft file)&lt;/SPAN&gt;&lt;SPAN&gt;. Finally, the sd_draft file is passed to the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;StageService_server method to construct the sd file for publication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At this point the&amp;nbsp;&lt;SPAN&gt;StageService_server returns the following error when executed in the DEV environment :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Analyzer errors were encountered ([{"code":"00147","message":"The Version Management extension is not available on the ArcGIS Server.","object":"Service_Name"}]).&lt;BR /&gt;Failed to execute (StageService).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEV environment is configured with all the ArcGIS Enterprise products (Portal, Server, Datastore and WebAdaptor) installed on a single machine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the script is executed in INT environment, which is configured with a single machine for each product, there is no error when enabling the Version Management extension in the publishing script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When publishing manually from ArcGIS Pro in DEV environment, there is no error when activating Version Management extension.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.9.8&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 10.9.1&lt;/P&gt;&lt;P&gt;I have tested the same script against DEV environment from a machine where ArcGIS Pro is installed, I get the same error message as above.&lt;/P&gt;&lt;P&gt;Is there something missing in the DEV environment&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Hervé&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 12:08:18 GMT</pubDate>
    <dc:creator>HervéW</dc:creator>
    <dc:date>2023-05-25T12:08:18Z</dc:date>
    <item>
      <title>Automatically publishing services : The Version Management extension is not available on the ArcGIS Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/automatically-publishing-services-the-version/m-p/1292983#M36067</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;In the process of automatically publishing services in different environments (DEV, INT, ACC, PRD) we have developed a python script. This script takes a Mapx file as input, imports it in an&amp;nbsp;&lt;SPAN&gt;ArcGISProject variable, performs every data connection replacements. Then the project is saved and used to create a sd_draft file that is finally configured to include Version Management extension (&lt;/SPAN&gt;&lt;SPAN&gt;"Enable VersionManagementServer : True" in sd_draft file)&lt;/SPAN&gt;&lt;SPAN&gt;. Finally, the sd_draft file is passed to the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;StageService_server method to construct the sd file for publication.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At this point the&amp;nbsp;&lt;SPAN&gt;StageService_server returns the following error when executed in the DEV environment :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Analyzer errors were encountered ([{"code":"00147","message":"The Version Management extension is not available on the ArcGIS Server.","object":"Service_Name"}]).&lt;BR /&gt;Failed to execute (StageService).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;DEV environment is configured with all the ArcGIS Enterprise products (Portal, Server, Datastore and WebAdaptor) installed on a single machine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the script is executed in INT environment, which is configured with a single machine for each product, there is no error when enabling the Version Management extension in the publishing script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When publishing manually from ArcGIS Pro in DEV environment, there is no error when activating Version Management extension.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Pro 2.9.8&amp;nbsp;&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 10.9.1&lt;/P&gt;&lt;P&gt;I have tested the same script against DEV environment from a machine where ArcGIS Pro is installed, I get the same error message as above.&lt;/P&gt;&lt;P&gt;Is there something missing in the DEV environment&amp;nbsp;?&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;Hervé&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 12:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/automatically-publishing-services-the-version/m-p/1292983#M36067</guid>
      <dc:creator>HervéW</dc:creator>
      <dc:date>2023-05-25T12:08:18Z</dc:date>
    </item>
  </channel>
</rss>

