laptop and a wrench

Bug

Using the @ syntax for calling a variable in Arcade editor in Map Viewer Classic displays a warning saying: Variable is assigned but never used.

Last Published: November 25, 2022 ArcGIS Online
Bug ID Number BUG-000153809
SubmittedNovember 17, 2022
Last ModifiedJune 5, 2024
Applies toArcGIS Online
Version foundNovember 2022
Operating SystemN/A
Operating System VersionN/A
StatusNon-Reproducible

Additional Information

This is fixed in the next version of ArcGIS Online.

Workaround

Use template literals instead of the @ notation. For instance, instead of:

var P = Portal("https://wwww.arcgis.com")
var itemID='ITEMID'
var featureID=$feature["FIELD_NAME"]
Var FS= FeatureSetByPortalItem(P, itemID,0,['FIELD_NAME2'])
var Mathes =Filter(FS, `FIELD_NAME= @featureID')

Use the following syntax:

var P = Portal("https://wwww.arcgis.com")
var itemID='ITEMID'
var featureID=$feature["FIELD_NAME"]
Var FS= FeatureSetByPortalItem(P, itemID,0,['FIELD_NAME2'])
var Mathes =Filter(FS, `FIELD_NAME= ${featureID}`)

Steps to Reproduce

Bug ID: BUG-000153809

Software:

  • ArcGIS Online

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