HOW TO
ArcGIS Server Utility Network and Data Management patches require the geodatabase to be upgraded via ArcGIS Server upon completing their installation. This ensures that fixes meant to address referenced feature services (including branch versioning) are applied at the geodatabase level.
To do this, one must utilize the ArcGIS Server's Python environment.
Use Notepad++ or a Python notebook to create a script named "upgrade_gdb.py" using the following syntax:
import arcpy Connection_File_Name_full_path="C:\\temp\\sysadmin_connection.sde" arcpy.UpgradeGDB_management(Connection_File_Name_full_path, "PREREQUISITE_CHECK", "UPGRADE")
Please note that upgrading the geodatabase via ArcGIS Server will require a database administrator (sa/dbo/sys/postgres) connection file instead of a geodatabase administrator (sde) connection file, which is used for the same purpose while upgrading via ArcGIS Pro.
The usual geodatabase upgrade prerequisites still apply:
"C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\scripts\propy.bat" C:\temp\upgrade_gdb.py
Or,
"C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" C:\temp\upgrade_gdb.py
source /<arcgis_server_installation_directory>/arcgis/server/framework/etc/arcenv
unset LD_PRELOAD
unset CONDA_DEFAULT_ENV
wine "Z:\<arcgis_server_installation_directory>\arcgis\server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe" <path_To>\upgrade_gdb.py
Article ID: 000037807
Get help from ArcGIS experts
Start chatting now