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

error : Invalid field Location__Latitude__s ???

Hello everybody , hope you are doing fine
I tried to do the some of this tutorial :
but I get an error :  Erreur de compilation : Invalid field Location__Latitude__s for SObject Account à la ligne 4 colonne 15
here is my code :
// Trigger runs getLocation() on Accounts with no Geolocation
  trigger SetGeolocation on Account (after insert, after update) {
         for (Account a :
          if (a.Location__Latitude__s == null)
I have already created a field name loacation in account
Thank you for your help
best regards
Dushyant SonwarDushyant Sonwar
Hi Imma,
I think it's version issue
See this..
Hope this Helps
yes you are totaly right , thank you for your replay i will see your link .
A lot of thanks
Dushyant SonwarDushyant Sonwar
If you created your Geolocation Field 'Location',
try to save your Trigger Api Version to 26 or below in VersionSettings tab.
I try your suggestion but I still get the some error
If somebody still has the problem - i encountered this while try to solve the salesforce trailhead and entering geolocation coordinates for a contact - try entering the coordinates/geolocation latitude longitude with a comma instead of a dot : 37.923824 ----> 37,923824