AnsweredAssumed Answered

Lat/Lon in Pop-up, "Cannot call member method on null"

Question asked by achipman_crec on Feb 3, 2020
Latest reply on Mar 9, 2020 by achipman_crec

I've been using scripts to return the Lat and Lon of points in an ArcGIS Online webmap to create a Custom URL hyperlink that automatically opens a Survey123 survey on the exact point of an existing feature. It's been working great for over a year on various different webmaps.


I'm now upgrading all my webmaps to ArcGIS Enterprise. The script I've been using to get the Lat or Lon is now failing in the pop-up. I get an "Execution Error:Runtime Error: Cannot call member method on null. x"


Can anyone help me get this working again? This has become an integral part of our workflow!