Select to view content in your preferred language

Attribute table and Popup showing different values for Arcade expressions

164
3
08-21-2024 09:37 AM
DougBrowning
MVP Esteemed Contributor

We are seeing this across multiple services and Arcade expressions.

Anyone know what is going on here?  Its been this way for some time now.  Not seeing this posted.

Simple expression LengthGeodetic($feature, 'miles')

DougBrowning_0-1724257689071.png

Thanks

0 Kudos
3 Replies
jcarlson
MVP Esteemed Contributor

I'd be willing to guess that what you see in the attribute table is a different Arcade profile that doesn't have access to the geometry? Or there's something about the context of the table in particular that doesn't include the geometry.

- Josh Carlson
Kendall County GIS
0 Kudos
bbollin
Esri Contributor

@DougBrowningHow did you author this arcade expression? Did you create an attribute expression in the pop-up itself? This will not actually edit or update your data.

You have a few options here, but what I would suggest is first using the new field calculator in Map Viewer to automatically calculate the length using your expression there. This will update anything with a 0.000 value 🙂  to match what you see in the pop-up and saves a lot of time.

Then, moving forward I suggest using Forms and calculated expressions. This will actually calculate the values for you when you create or update features and you will see that reflected in the table.

Hope this helps

0 Kudos
DougBrowning
MVP Esteemed Contributor

It is just a simple expression in the viewer not any kind of calculated anything.  It has to be dynamic as it calcs from a 123 form.   String type shows more values than number which is strange.  Just random some are not 0.  Also no show button just a bunch of 0s even though the popup has a value.  We see this across several maps for a few years now.

DougBrowning_0-1724334172578.png

 

We still use the old map viewer since we are still waiting for full related record support.  Some parts are there but the Show Related Records button is still missing and it is still not working for ArcServer services.  Performance is also not good with many layers. 

Really hoping these get in there at some point.  We have had the tickets open for well over a year now.

ENH-000156741 : Enable ‘Show related records’ in pop-up of map viewer for ArcGIS Server services that are added as an item in ArcGIS Online
ENH-000145502 : View related records option is not available in the new Map viewer in the pop-ups when we click on a point / polygon / line feature unlike map viewer classic.
ENH-000158250 : No link to open the attribute table in ArcGIS Experience Builder
ENH-000158251 : No link to related records in ArcGIS Experience Builder attribute table 

 

thanks

0 Kudos