Select to view content in your preferred language

Automatically publishing services : The Version Management extension is not available on the ArcGIS Server

287
0
05-25-2023 05:08 AM
HervéW
Emerging Contributor

Hi all,

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 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 ("Enable VersionManagementServer : True" in sd_draft file). Finally, the sd_draft file is passed to the StageService_server method to construct the sd file for publication.

At this point the StageService_server returns the following error when executed in the DEV environment :

Analyzer errors were encountered ([{"code":"00147","message":"The Version Management extension is not available on the ArcGIS Server.","object":"Service_Name"}]).
Failed to execute (StageService).

DEV environment is configured with all the ArcGIS Enterprise products (Portal, Server, Datastore and WebAdaptor) installed on a single machine.

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.

When publishing manually from ArcGIS Pro in DEV environment, there is no error when activating Version Management extension. 

ArcGIS Pro 2.9.8 

ArcGIS Enterprise 10.9.1

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.

Is there something missing in the DEV environment ?

Thanks for any suggestions.

Hervé

0 Kudos
0 Replies