Hi,
I don't really use Arcade that much. Today when I tried to use the function "FeatureSetByRelationshipName" to get some values from one of my related tables, there was always this red marker on the right side and when I hover over the function, it suggested that the function "is not defined". I also tried this using "FeatureSetByName" function but it was also showing the same message. My lines were pretty simple:
var related = FeatureSetByRelationshipName($feature, 'related_table', [*], false)
return related
Do I have to do something to define some sort of variables before using these functions? Or are there any required libraries that have to be loaded?
Thanks!
Solved! Go to Solution.
It probably depends on the Profile you're using. Are you by chance attempting to use this for symbology? FeatureSet functions aren't available in the symbology profile.
Edit: here's the relevant post of the documentation: https://developers.arcgis.com/arcade/profiles/
It probably depends on the Profile you're using. Are you by chance attempting to use this for symbology? FeatureSet functions aren't available in the symbology profile.
Edit: here's the relevant post of the documentation: https://developers.arcgis.com/arcade/profiles/
Well...that was where I tried adding the arcade expression. That explains it.
Thanks for the information!