AnsweredAssumed Answered

How do I use Python to test whether a FeatureClass has GlobalIDs?

Question asked by GReidel on Oct 6, 2011
Latest reply on Aug 14, 2019 by fallingdog
I have some large SDE databases that we want to start replicating. The feature classes need  Global IDs to do this. Some already have them. I want to write a script that will go through every feature class and add a Global IDs, but if a FeatureClass already has one, the script ends. I know I can test a Table for hasGlobalID, but it doesn't work on a FeatureClass. How can I write an IF statement that will test whether a FeatureClass has a GlobalID? Does anyone have a better suggestion?