cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Greetings,

We are in the throws of a hackathon and have run into an issue with the Azure Maps connector.  When we refer to location Concatenate(Location.Latitude & "," & Location.Longitude) using a concatenate "," we receive an error (shown in image).  However, if we hard code the lat/long with a value, 32.7555, 97.3308, we do not experience the issue and the feature provides the desired results.  For our purposes, we need to refer to the users lat/long.  

 

We also attempted:

  • Referencing the CHAR()
  • Placing the "," in a label and referring to the label
  • Everything else under the sun that we could think of......

image.png

@ericonline  

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Super User
Super User

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Hi @tianaranjo 

Looking at this a bit more closely, it looks like your formula isn't picking up the long and lat values (just the ,).

image.png

Perhaps this might be some timing issue. Maybe you could try retrieving the your coordinates in the OnVisible of your screen and then try passing the variable to GetAddress?

 

View solution in original post

Highlighted
Super User
Super User

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Not sure which of the two items below fixed it but here are the additional items we tried:

- Shared the Custom Connector with `Edit` permissions to everyone

- Moved the API call from OnVisible to a navigation button within the app (per @timl's "timing" recommendation)

- This one is really weird:

    - The GET request had a parameter that was misspelled ("long" instead of "lon")

    - Still, the Custom Connector pulled in (incorrect) Responses!

    - Even the Azure Maps API Docs pulled in (incorrect) Responses with the misspelling!

    - image.png

Hope this helps! Thanks for posting @tianaranjo 

View solution in original post

4 REPLIES 4
Highlighted
Super User
Super User

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Hi @tianaranjo 

One issue is that Latitude and Longitude values are numeric, so you might want to try converting them to text like so:

 

Concatenate(Text(Location.Latitude) , 
"," ,
Text(Location.Longitude)
)
Continued Contributor
Continued Contributor

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

@timl Forgot to mention that we do have Text without success. Thanks!

Highlighted
Super User
Super User

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Hi @tianaranjo 

Looking at this a bit more closely, it looks like your formula isn't picking up the long and lat values (just the ,).

image.png

Perhaps this might be some timing issue. Maybe you could try retrieving the your coordinates in the OnVisible of your screen and then try passing the variable to GetAddress?

 

View solution in original post

Highlighted
Super User
Super User

Re: HELP - Azure Maps Connector - Bad Gateway - Invalid Parameter

Not sure which of the two items below fixed it but here are the additional items we tried:

- Shared the Custom Connector with `Edit` permissions to everyone

- Moved the API call from OnVisible to a navigation button within the app (per @timl's "timing" recommendation)

- This one is really weird:

    - The GET request had a parameter that was misspelled ("long" instead of "lon")

    - Still, the Custom Connector pulled in (incorrect) Responses!

    - Even the Azure Maps API Docs pulled in (incorrect) Responses with the misspelling!

    - image.png

Hope this helps! Thanks for posting @tianaranjo 

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,696)