Hi Community,
I have a Bridge Structure line feature class (fields: Bridge_ID, GlobalID) and a Bridge Clearance point feature class (fields: Bridge_ID, Carriageway, Clearance_FK). These two layers are linked with a relationship class (One to Many).
I want to display the related Bridge Clearance information in the Bridge Structure pop-up, so I used the following Arcade expression:
var rel = FeatureSetByRelationshipName(
$feature,
"Clearance_Relationship"
);
if (Count(rel) == 0) {
return "No clearance records";
}
var txt = "";
for (var r in rel) {
txt += r.Carriageway +
" - Min Clearance: " + r.Minimum_Clearance + "\n";
}
return txt;
This works correctly in ArcGIS Pro. However, after publishing the data to ArcGIS Enterprise, the relationship name is missing in the REST service (it appears as "name": ""). Because of this, the Arcade expression cannot find the relationship and no longer works in the web map.
Is there a step I’m missing, or is this a known restriction when publishing relationship classes to Enterprise?