I'm having trouble running the arcpy.management.ChangeVersion() tool in arcpy to change the branch version of a Utility Network layer. The tool only works if you use it directly from the geoprocessing tool via the ArcGIS Pro graphical interface. However, when run in an isolated Python script, or via ArcGIS's own Notebook, it returns an error and does not change the version to the definition, despite being the same command copied from Geoprocessing.


Another point is that there is no way to check the branch version via arcpy, only via the graphical interface. Not even arcpy.Describe() makes the branch version explicit.
