The Field Maps Designer's Arcade profile/version should match the current Arcade version available in the latest Field Maps mobile application release. That way is something works in the Designer we know it will work in the field.
I have noticed that within the Field Maps designer, the Arcade functions available in field calculations do not match what can actually be executed in the Field Maps application, creating a false expectation of what actually works in the field. I suspect that the Designer uses the AGOL profile (currently on version 1.26) while the actual mobile application is, I think, 1.19 since Field maps on iOS runs on ArcGIS Runtime SDK 100.15.
For example - I was excited to try the "PointToCoordinate" Function to get M-values on the fly in the field. In the Field Maps Designer, and in a Web Map, it works perfectly, but in Field Maps I get an "unknown function" error.
Also the version matrix (https://developers.arcgis.com/arcade/guide/version-matrix/) does not really help to identify fieldmaps compatible functions. i.e. MeasureToCoordinate & PointToCoordinate..
Or maybe i'm not using the documentation correctly?
I've found similar problems with items like GetUser() to return a users First and Last names. It works in Field Maps when Online, but not when Offline, and so I need to split the actual Username value (that does return when offline) and then format and Concatenate the values to get first, last or full names. Would be nice if the Online vs Offline functionality was also documented clearly.
Just ran into this problem also. I am also building an application to get polyline m-values in relation to a polygon location. The point to coordinate works perfectly in our enterprise portal field maps designer, but I also get the unknown function error when running it in the Field Maps app on the ipad. The ipad field maps is running on ArcGIS Runtime SDK 100.15.6, which does look like that runs Arcade 1.19, according to the matrix. I need to see if there is an alternate option in Arcade 1.19 to get the m value, or if it is possible to run ArcGIS runtime SDK 200.x. Please let me know if there is a good function, or if I am just stuck with sdk 100.15 (just downloaded field maps from our portal)? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.