Select to view content in your preferred language

Use Cases for arcpy.management.ChangeVersion() w/ Branch Versioned Data

246
0
01-30-2025 09:19 AM
__JackCharde__
Regular Contributor

Hey Everyone,

I found myself writing a python script to update certain features in a branch versioned feature layer added to a Pro project (v3.2) and running into an unhelpful error with the UpdateCursor.

SystemError: <built-in method __enter__ of Workspace Editor object at 0x0000020BF12A88A0> returned NULL without setting an error

That's when I realized I needed to use the ArcGIS API for Python to make these updates. However it made me wonder (which is why I'm asking here) what are some general use cases for using arcpy.management.ChangeVersion() with version_type='BRANCH'. If it's not editing, is it other maintenance/administrative activities?

Thanks 🙂

- Jack C

 

0 Replies