Select to view content in your preferred language

How to Create Relationship class based on GLOBALID/GUID with a table

310
3
02-03-2025 05:54 AM
JoseSanchez
Frequent Contributor

Good morning,

How to Create Relationship class based on GLOBALID/GUID from a feature class to a table.

Thanks.

 

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

A long integer type is required for the common fields

Geodatabase relationship class fundamentals—ArcGIS Pro | Documentation

or are you looking to migrate one?

Migrate Relationship Class (Data Management)—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
DavidSolari
MVP Regular Contributor

What version of Pro are you using? Manually created relationships that use GUID types used to be flaky but I'm on Pro 3.1 and I've created dozens of them with zero issues. Simply ensure the origin/parent item has GlobalIDs enabled and the destination/child item has a GUID type field. Then create the relationship class and pick the appropriate fields. Note that GlobalID to GlobalID won't work as the relationship can't override any existing values here.

SanchezNuñez
Frequent Contributor

Good morning,

I was able to create a relationship between a feature class and a table by using the GlobalId from the feature class and a new field called SiteGUID in the table, which is of type GUID.

Thanks

0 Kudos