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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / BingMaps.GeoLocationBy...
Power Apps
Unanswered

BingMaps.GeoLocationByPoint failed

(1) ShareShare
ReportReport
Posted on by 3,295

Hi there.

 

Question here?

 

I am having this error very often, or almost every time when I open the app.

On the "OnStart" property I have:

 

image1.png

;
Set(
myLocation,
BingMaps.GetLocationByPoint(
Location.Latitude,
Location.Longitude
)
);

 

Somebody could point me the issue, or what is missing?

 

I have no clue.

 

thanks in advance

Categories:
  • jagathsb78 Profile Picture
    2 on at

    Hi,

     

    Im having the Same issue did you Manage to fix this, Any suggestions much Appreciated

     

    jagathsb78_0-1667397305049.png

     

     

    Thanks

    Jag

  • Sajarac Profile Picture
    3,295 on at

    Hi @jagathsb78 

    On the "Onstart" property I did this:

     

    Set(
    gblLocation,
    {
    Lat: Location.Latitude,
    Lon: Location.Longitude
    }
    );

     

    This is what I had before but always failed
    //Set(myLocation, BingMaps.GetLocationByPoint(Location.Latitude, Location.Longitude).point)//

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @sajarac 

     

    1. Click db icon on left

    2. Click Add Data

    3. Type in bing

    4. Click Bing Maps

     

    poweractivate_0-1667407291714.png

     

    5. Check here on the right side and put in your correct API Key.

     

    poweractivate_1-1667407415001.png

    Do you have an API Key and is it valid?

     

    If not you can check here about how to get a Bing Maps Key

     

    It is possible that some time ago this did not require an API Key and now it does (not sure though).

    Even if you already have the valid API key, does removing the current Bing Maps Connector and re-adding it again with the above steps and putting in your API key work?

     

    6. The last step is after you put in the API key in that text field, to just click "Connect" button at the very bottom of the pane.

     

    7. Now try to use the Connector. Does it work?

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @sajarac 

     

    In case the above does not work:

     

    1. The argument you are giving it might be Text. try using Value() and see if it works

     

    BingMaps.GetLocationByPoint(Value(someTextLat),Value(someTextLon))

     

    2. Try putting Location.Latitude as the Text property of a Label to test and do the same with Location.Longitude in another Label to test. Do the values shown look like something that could be fed into the above function without error? 

     

    3. It's possible at certain points in time such as in the very beginning, these values  Location.Latitude and Location.Longitude might be ultimately returned by the device in an internal implementation somehow, and are not available or not valid at certain points in time. You might need to surround the call to BingMaps with an If function check and make sure these values are currently valid first before actually feeding them to the function. If they are not valid, to let it check again after some time such as 1 second or so. You might sometimes need to use a Timer control to do this, and to have it retry automatically in a second or so if the value is found not to be valid, but if it is valid, to go ahead and feed it into the function, and not try again.

     

     

  • wrizk Profile Picture
    Microsoft Employee on at
    i think this solved my problem on Android.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard