Select to view content in your preferred language

Invalid number for coordinate on Iphone

302
2
11-14-2024 06:43 PM
yockee
by
Frequent Contributor

I created a survey form using Survey123.

There are coloumns to store coordinate with formulae : round(pulldata("@geopoint", ${location}, "x"),5) and round(pulldata("@geopoint", ${location}, "y"),5)

This works fine on Android but gives out error "invalid number" on Iphone. The coordinates are different very slightly (only the last digit is different, not much).

Due to this error, the survey can not be sent from Iphone. I am using Iphone 12 and 14 to test it. All the Location -> Integrated Provider setting are the same between Android and Iphones.

I am using SDE Postgresql 16, Enterprise 11.0

need advice/  help to fix this.

Thanks

 

yockee_0-1731637296757.png

Update : I get around it by changing DOT "." into COMMA "," on the Iphone. This is NOT *convenient* because I want to lock the coordinates (users don't have the authority to update these fields). I need it to work automatically on both Iphone and Android.

 

0 Kudos
2 Replies
DougBrowning
MVP Esteemed Contributor

Pulldata often does not like being inside a calculation.  I would simply remove the round.  No need to reduce the accuracy.  See if that works.

0 Kudos
yockee
by
Frequent Contributor

Finally I know the problem: its the numbering format on Iphone.. 

I change the Numbering format on the IPhone, from "xy,xy.xy" to "xy.xy,xy"

Now Survey123 works on both OSs

0 Kudos