laptop and a wrench

Bug

A calculation attribute rule fails to save when using a previously declared string variable in the FeatureSetByName Arcade function.

ArcGIS Pro
Bug ID Number BUG-000165771
SubmittedMarch 7, 2024
Last ModifiedApril 9, 2025
Applies toArcGIS Pro
Version found3.1.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusAs Designed

Additional Information

This is by design; featuresetbyname must take a literal string to make the Arcade work across the stack. This is required for copy and paste, publishing, client-side evaluation, and much more. It is not recommended to pass a variable. If the user must pass a variable for any reason, they can create a new function: var newFeatureSetByname = FeatureSetByName, Then, use newFeatureSetByname instead. However, the user must exclude the rule from evaluation and must understand that this will affect publishing, copy and paste, and other workflows.

Workaround

This is by design; featuresetbyname must take a literal string to make the Arcade work across the stack. This is required for copy and paste, publishing, client-side evaluation, and much more. It is not recommended to pass a variable. If the user must pass a variable for any reason, they can create a new function, var newFeatureSetByname = FeatureSetByName, and then use newFeatureSetByname instead. However, the user must exclude the rule from evaluation and must understand that this will affect publishing, copy and paste, and other workflows.

Steps to Reproduce

Bug ID: BUG-000165771

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options