Hey Rhett,
Thanks for the quick reply. I tried your suggestion (code below), but still received the same error.
var ref_guid= upper ($feature.GUID)
if(ref_guid == null) {
return null
}
var wells_fs=FeatureSetByName($map,"Wellsites2")
var wells_filter = Filter(wells_fs, `GlobalID = '${ref_guid}'`)
var well = First(wells_filter)
if (IsEmpty(well)){
return null
}
return well.Well_Name
Also, just to clarify, my initial code (below, just in case) was successfully populating fields in my inspection form with info from my related feature class. It stopped working when I created and used an offline map for data collection.
//Initial code that was successful in non-offline mode.
var ref_guid= $feature.GUID // <---No upper casting
if(ref_guid == null) {
return null
}
var wells_fs=FeatureSetByName($map,"Wellsites2")
var wells_filter = Filter(wells_fs, "GlobalID = @ref_guid")
var well = First(wells_filter)
if (well == null) {
return null
}
return well.Well_Name
Kelsey