Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm creating a script to which make a blank geodatabase with a required dataset, feature classes, tables, subtypes, relationships.

I've got everything to work expect for the damn GlobalIDs!

I have no idea why it's not working.

#Creates GlobalID's for tables
arcpy.AddGlobalIDs_managment("Equipment", "Copper", "WorkOrder")

These are tables that sit directly inside my geodatabase. My workspace is set directly to the geodatabase by the user:

GDBpath = arcpy.GetParameterAsText(0)
arcpy.env.workspace = GDBpath

I keep getting this error:

<type 'exceptions.AttributeError'>: 'module' object has no attribute 'AddGlobalIDs_management'

I have no idea what this means or why I'm getting the error.

Can I not add GlobalIDs to tables that only have fields and no records?

Thanks for any help.

share|improve this question

1 Answer 1

HAHAHA! Oh man!

I finally see. I'm missing an 'e' in management!

I copied that straight from the ESRI resource documentation, so they should probably fix that. Wow. What a waste of time.

Found another mistake I made.

Should be:

arcpy.AddGlobalIDs_management(["Equipment", "Copper", "WorkOrder"])

Need the brackets.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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