Select to view content in your preferred language

Disable Global ID with Python?

968
3
Jump to solution
11-29-2022 05:56 AM
Nicolas_GREHANT_IGNFI
Occasional Contributor

Is there a way to get rid of GlobalID using Python in a GDB?

Let me explain:

If I'm not wrong we are currently forced to Add GlobalID and Enable Editor Tracking to implement Data Reviewer rules in a GDB we want to validate with Attribute Rules.

The fact is that we do not want to modify our official GDB structure, and that, if we temporalily add these fields, we also want to delete them after validation.

Rather easy to Add GlobalIDs and Enable Editor Tracking with Python, and then to Disable Editor Tracking then Delete Fields for Editor, always with arcpy.

But nothing for getting rid of GlobalIDs, except maybe transfering all the data in an empty GDB in the same model, without GlobalIDs... Very long for nearly nothing.

Any other solution?

TKS

0 Kudos
1 Solution

Accepted Solutions
Nicolas_GREHANT_IGNFI
Occasional Contributor

Hi Jay! I agree, it's something far more general than Data reviewer, the fact was just that adding GID was something compulsory because of DR. I'm gonna post in Data Management Ideas. TKS

View solution in original post

3 Replies
Nicolas_GREHANT_IGNFI
Occasional Contributor

No answer = Impossible?...

Here is the bypass we use, but it means "Having Topographic Mapping" extension:

- We create a XCROSS to go from GDB with GIDs to the original GDB without.

- We then use "Load Data".

All this goes very quick.

Anyway it would be 1000 time better to have an arcpy "Desable Global IDs"...

0 Kudos
JayCary
Esri Contributor

This question might get more responses in the geodatabase board. That said, this might be a good opportunity to suggest an enhancement in the Data Management Ideas site for more control on a GlobalID field.

0 Kudos
Nicolas_GREHANT_IGNFI
Occasional Contributor

Hi Jay! I agree, it's something far more general than Data reviewer, the fact was just that adding GID was something compulsory because of DR. I'm gonna post in Data Management Ideas. TKS