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

Announcements

No record found.

News and Announcements icon
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
    101,458 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,216 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,471 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,369

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans