[GIS] How to maintain GlobalIDs while copying shapefile data into ESRI FGDB feature class

arcgis-10.0arcgis-desktopfile-geodatabaseshapefile

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.

Best Answer

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.

Related Question