We found a undocumented bug/feature
))
Although the documentation says that [title] is a "Feature Layer based on its name within a map or feature service"
https://developers.arcgis.com/arcade/function-reference/featureset_functions/#featuresetbyname
We tried to use it with a file geodatabase/enterprise and feature class name as a second parameter [title]
ArcGIS Pro 3.1.2
Steps to reproduce:
- Create a new project in ArcGIS Pro
- Create a new file geodatabase
- Create a new polygon feature class, Example name "Transformer"
- Create an Immediate Calculation attribute rule for the feature class
- The code of the expression
var fsTransformer = FeatureSetByName($datastore, "Transformer", ["*"], false) - Save the attribute rule
- Change the feature class name "Transformer" to another name, Example "Apple"
- Save, close and open the project
- See the attribute rule - the expression changed to
var fsTransformer = FeatureSetByName($datastore, "Apple", ["*"], false)
Any comments?