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)
)
Highlighted
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

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (4,429)