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
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?
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.
It's sometimes easier to add to a relation using domain values when there is not a lot of features in the linked table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.