AnsweredAssumed Answered

Line split not retaining field of type GUID

Question asked by VApteesriaustralia-com-au-esridist Employee on Aug 25, 2020
Latest reply on Sep 3, 2020 by VApteesriaustralia-com-au-esridist

I have a geodatabase feature class "WaterPipe" that has a column "AssetID" of type Guid. But this is not a "globalid" field. This column "AssetID" is primarily used to establish a foreign key to third party Enterprise Asset Mgmt system. When asset is created in GIS, AssetID is set to same value as GlobalID using Attribute Rule on Create as below.

 

if (IsEmpty($feature.AssetID)) {
   if (IsEmpty($feature.GLOBALID))
  {
    return Guid();
  }
  else return $feature.GLOBALID;
}
else return $feature.AssetID;

 

The requirement is when a line is split in ArcGIS Pro, the two sections of the line need to retain the original "AssetID" value. However, this is not happening. One piece has original AssetID and second piece has AssetID reset to GLOBALID. Only way I can think of this happening is due to Attribute Rule above finds $feature.AssetID empty when execution begins. If I disable attribute rule, "AssetID" field is empty on second piece. For any Text or Integer field, the value is retained on both pieces after the split but not the "AssetID" field. Is it a restriction on GUID column type? 

 

Cheers,

Vish   

Outcomes