Feature class to geodatabase removes global id

127
1
02-26-2024 08:28 AM
Scosh
by
New Contributor II

I'm using arcpy.conversion.FeatureClassToGeodatabase() and it removes the globalid field. This doesn't happen when I manually copy a feature class to a new gdb. Is this a bug or am I missing something?

0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor

Hi @Scosh ,

I'm not sure if this is by design or not, but you can use the Export Features tool to workaround this.  There is an environment setting to preserve existing GlobalIDs:

JakeSkinner_0-1708969111992.png

 

You can also right-click on the tool to execute it in Batch to process multiple feature classes.

0 Kudos