AnsweredAssumed Answered

Arcade expressions appear in AGOL web map popups but cause error in WAB app

Question asked by bates@cartolab on Feb 6, 2019
Latest reply on Feb 7, 2019 by bates@cartolab

I have a popup that includes Arcade Expressions, which appear just fine in the AGOL web map (The Arcade expressions populate the items under Owner Info:

 

But when I add this web map to a WAB Dev Edition application (v2.10), the arcade expressions do not appear. See the Owner Info section in the popup in the image below. There is no console error when this occurs.

 

However, when opening the Attribute Table widget, data does not render and the Javascript console does produce an error:

 

js.arcgis.com/3.26/init.js:115 Error: Runtime Error: Function Not Found: FeatureSetByName

 

 

This is an example of the arcade expression I'm using, which does call FeatureSetByName (mentioned in the console error)

 

var ownerTable = FeatureSetByName($datastore,"owner_info");
var parcelId = $feature.parcel;
var sql = "parcel = '" + parcelId + "'";
var ownerRecord = Filter(ownerTable, sql);
for (var f in ownerRecord){
    return f.owner1
}

Outcomes