Add GUID Field for coded Domains

351
2
10-25-2018 07:43 AM
Status: Open
JeanBissonnette
New Contributor III

Make GUID field able for make coded domain and make TableToDomain_management tool able to use GlobalID and OBJECTID for coded_field. If you have a little table with a list of thing and you want to make use a GlobalID or ObjectID for coded value. 

Exemple :

>>> arcpy.TableToDomain_management('Prototype.gdb\\Adresse', "GlobalID", "Titulaire", 'Prototype.gdb' ,"_Exemple_GUID", "_EXEMPLE_GUID", "REPLACE")
Runtime error  Traceback (most recent call last):   File "<string>", line 1, in <module>   File "c:\arcgis\desktop10.5\arcpy\arcpy\management.py", line 1815, in TableToDomain     raise e ExecuteError: ERROR 000308: Invalid field type 

2 Comments
KoryKramer

Jean Bissonnette‌ I'm not sure I understand the use case here.  ObjectID and GlobalID are system-generated values and both will be unique to each record in a table.  Why do you need to create a coded value domain using these field types?

JérémiePedoia

When you want to populate a GUID field in Survey123 from an other related table by this GUID, this could be usefull to build a domain on this GUID.