function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sonu MahanSonu Mahan 

NUMBER_OUTSIDE_VALID_RANGE

Hello Guys,
I am inserting a record for "Account" object and I am getting error "Geolocation1: value outside of valid range on numeric field:". I have lat value "
104.8789". I have cheked Accoumt Object details and "precision"  value is "13" and "scale" value is "10".

Any help would be much appreciated.

Thanks
YuchenYuchen
So what is the Data Type for this Geolocation1 Field? If it is Number, I remember that "The sum of the length and decimal places must be an integer less than or equal to 18". If the Data Type is Geolocation, what did you fill in the "Geolocation Options" section?
jigarshahjigarshah
Sonu,

Latitude values range from -90 to 90.
Longitude values range from -180 to 180.

I believe the Latitude value that you are trying to set i.e. 104.8789 which falls outside the permitted Latitude value range and hence the error. I believe you may need to swap the values.

Hope this helps.

Please DO NOT forget to mark this thread as SOLVED if this answers helps resolve your issue.