FeatureSetByRelationshipClass validate error - unknown function

261
1
01-02-2024 01:43 PM
WilliamDoane9
New Contributor

I am trying to set up a Field Map which can auto-populate an inspection field in a related table from an existing point

I created the Relationship Class - we can call 'Rel_Name'

Then in Attribute Rules for the table I created a Calculation rule as follows:

"var parent = FeatureSetByRelationshipClass($feature, 'Rel_Name', ['Field_Name'])
return First(parent)"

 

Validating throws the following error - "Invalid expression. Error on Line 1. Unknown Function."

 

Can anyone advise?

Tags (3)
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor

FeatureSetByRelationshipClass was released in the most current version of Arcade (v1.24), which may not work in Field Maps yet. Can you use FeatureSetByRelationshipName instead?

0 Kudos