Arcade - Failed to calculate in field maps

139
1
Jump to solution
3 weeks ago
neomapper
Occasional Contributor

I am experiencing an issue where an arcade expression that functions properly in the web browser field maps setting does not seem to work in the field maps app. I receive a 'Failed to calculate'. I am attempting to set up inspections that auto populate, but I am unable to get any of the data fields to transfer over when using the app. Can you please provide some guidance on how to resolve this issue? Thank you.

neomapper_1-1714513894174.png

 

 

 

var parent_id = $feature.GUID

Var related_Manholes = FeatureSetById($datastore, 2,['GlobalID', 'assetid'], false)

Var parent_Manhole = First(Filter(related_Manholes, 'GlobalID = @parent_id'))

if(parent_Manhole  == null){
return
}
else {
return parent_Manhole.assetid
}

 

 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
neomapper
Occasional Contributor
After testing, I was able to resolve the issue and get the code functioning correctly. I will include the snippet of code below.
 

 

var parent_id = $feature.GUID
var Layer = FeatureSetByName($map,"Pipeline Device", ["GlobalID"]);
Var parent_Manhole = First(Filter(Layer, 'GlobalID = @parent_id'))
return parent_Manhole.objectid

 

View solution in original post

0 Kudos
1 Reply
neomapper
Occasional Contributor
After testing, I was able to resolve the issue and get the code functioning correctly. I will include the snippet of code below.
 

 

var parent_id = $feature.GUID
var Layer = FeatureSetByName($map,"Pipeline Device", ["GlobalID"]);
Var parent_Manhole = First(Filter(Layer, 'GlobalID = @parent_id'))
return parent_Manhole.objectid

 

0 Kudos