web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

GeoLocation doesn't work on Business Central Cloud

(1) ShareShare
ReportReport
Posted on by 6

Hi everyone,
I'm getting an error when i try to get Latitude & Longitude. The code looks like this shown below :

 

            action(GeoLocation)

            {

                Caption = 'GeoLocation';

                ApplicationArea = All;

                Promoted = true;

                Image = Map;

                trigger OnAction()

                var

                    Geolocation: Codeunit Geolocation;

                    Latitude: Decimal;

                    Longitude: Decimal;

                    Msg: Label 'Latitude is %1.//Longitude is %2.';

                begin

                        Geolocation.SetHighAccuracy(true);

                        if Geolocation.RequestGeolocation() then begin

                            Geolocation.GetGeolocation(Latitude, Longitude);

                            Message(Msg, Format(Latitude), Format(Longitude));

                        end;

                end;



And the error I get says : /
Exception of type 'Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLNotSupportedTypeException' was thrown./

 

Can anyone help with this. Thanks in advanced!

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,748 Super User 2025 Season 2 on at
    There is indeed a problem, I'm sorry I don't know the solution yet, and Microsoft's documentation doesn't say it's been deprecated, which may be a standards issue.
    codeunit 7569 "Geolocation Impl."
     
    Thanks.
    ZHU
  • Judy Profile Picture
    Microsoft Employee on at
  • Ponch Profile Picture
    7 on at
    Hi, on May 14th I open a ticket to MS to ask information about the error.
    Today they answer me: "The product team affirmed that the inability to open Geolocation page is based on a code defect and a work item has been created to address the issue."

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans