HOW TO
Global ID and GUID data types store registry style strings consisting of 36 characters enclosed in curly brackets within a geodatabase. The values are normally used to track geodatabase replication; however, they can be used for other identification purposes.
The Global ID values are automatically updated when a feature is added to a geodatabase. In contrast, the GUID values must be managed manually. These values can be created through Python.
A unique identifier can be calculated using the UUID (Universally Unique Identifier) Python module. The resulting string value can be modified to match the same format as the Global ID by applying an uppercase function with the addition of curly brackets.
Note: A text field requires a length of 38 characters to store the identifier, dashes, and brackets.
Code: def ID(): import uuid return '{' + str(uuid.uuid4()) + '}'
Code: ID()
Get help from ArcGIS experts
Download the Esri Support App