web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    93,820 Super User 2025 Season 2 on at
    GeoLocation doesn't work on Business Central Cloud
    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
    GeoLocation doesn't work on Business Central Cloud
    Hi, please refer to the helpful links:
    Best Regards,
    Judy
  • DP-21052040-0 Profile Picture
    2 on at
    GeoLocation doesn't work on Business Central Cloud
    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 2,179

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 1,999

#3
YUN ZHU Profile Picture

YUN ZHU 1,892 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans