FeatureSetBy functions are not defined

547
2
Jump to solution
02-07-2023 02:50 PM
Labels (1)
ZhongmingAn
New Contributor III

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

ZhongmingAn_0-1675809371283.png

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!

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

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/

- Josh Carlson
Kendall County GIS

View solution in original post

2 Replies
jcarlson
MVP Esteemed Contributor

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/

- Josh Carlson
Kendall County GIS
ZhongmingAn
New Contributor III

Well...that was where I tried adding the arcade expression. That explains it.

Thanks for the information!

0 Kudos