Summary
This upgrades the asset package schema to the current version of ArcGIS Pro.
Usage
- This tool modifies the input data.
Syntax
arcpy.NOALIAS.UpgradeAssetPackage(asset_package)
Name | Explanation | Data Type |
asset_package | The asset package to be upgraded. | Workspace |
Asset Package | The asset package to be upgraded. | Workspace |
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