smenefee

Method to check for State 0?

Discussion created by smenefee on Mar 27, 2013
Latest reply on Mar 27, 2013 by mzcoyle
Does anyone know if there's a way in which you can return the State number of a versioned geodatabase via Python?

We have a script that compresses the geodatabase, but sometimes we have to manually compress it after it has run to achieve state 0.  We'd like for the script to create Versions after the compress, but only if it's at State 0.  So, if we can get the State number we could check for State 0 and create them if it  is at State 0, and not create them if it's not.

Any help would be appreciated, thanks!

Outcomes