Upgrade Asset Package (Utility Network Package)

Available with Standard or Advanced license.

Summary

This upgrades the asset package schema to the current version of ArcGIS Pro.

Usage

  • This tool modifies the input data.
    Caution:

    See Tools with no outputs for more information and strategies to avoid undesired data changes.

Parameters

LabelExplanationData Type
Asset Package

The asset package to be upgraded.

Workspace

arcpy.pt.UpgradeAssetPackage(asset_package)
NameExplanationData Type
asset_package

The asset package to be upgraded.

Workspace

Code sample

UpgradeAssetPackage example (Python window)

The following Python window script demonstrates how to use the UpgradeAssetPackage tool in immediate mode.

arcpy.pt.UpgradeAssetPackage("D:/data/ElectricNetwork.gdb")
UpgradeAssetPackage (stand-alone script)

The following stand-alone script demonstrates how to use the UpgradeAssetPackage tool.

# Name: UpgradeAssetPackage.py
# Description: Upgrades the asset package to the current release
 
# Import system modules
import arcpy
 
# Set local variables
asset_package = "D:/data/ElectricNetwork.gdb"
 
# Upgrade asset package
# Print warning if the asset package is already at the current release.
result = arcpy.pt.UpgradeAssetPackage(asset_package)
if result.maxSeverity == 1:
    print(result.getMessages(1))

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes