I want to copy a shapefile data into an ESRI file geodatabase feature class. That feature class having a GlobalID column and it is being auto generated by the system while copying.

The GlobalID values maintained as string in the shapefile and I want to retain the same GlobalIDs in copied feature class too.


2 Answers 2


I have followed the below steps to resolve this problem:

  1. Loaded the FGDB in ArcSDE and changed the GlobalID type to GUID as per this help concept.
  2. Created an additional string field (e.g. GloblaIDString) in that ArcSDE feature class to hold the GUID string while copying shape file data.
  3. By using the ArcMap field calculator, GlobalIDString data copied to GlobalID (GUID type) field.
  4. GlobalIDString field has been removed.
  5. GUID type changed as GlobalID as per the same help concept.
  6. ArcSDE database converted back to FGDB.

Now i have copied shape file GUID strings to FGDB's GlobalID with no changes.


This can now be achieved in ArcGIS Pro via the Preserve Global IDs Environment setting:

arcpy.env.preserveGlobalIds = True

Preserve Global IDs (Environment setting)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.