cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tianaranjo
Level 8

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
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?

 

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 

4 REPLIES 4
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)
)
tianaranjo
Level 8

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

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

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?

 

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 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 83 members 4,604 guests
Recent signins:
Please welcome our newest community members: