Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Translation Quality Feedback
Unanswered

Power Automate + Google Maps API: Pipe Character "|" Causing Proxy Error in Sandbox Environment

(0) ShareShare
ReportReport
Posted on by 4

 

I'm having an issue with Google Maps Directions API when using it through Power Automate's HTTP action. The problem only occurs in my sandbox environment - it works fine in development environment.

 

The Setup

 

Using Google Maps Directions API endpoint:

 
https://maps.googleapis.com/maps/api/directions/json
 

With these query parameters:

 
origin=Sydney Opera House, Sydney NSW, Australia
destination=Surfers Paradise, Gold Coast QLD, Australia  
waypoints=optimize:true|Blue Mountains National Park, NSW, Australia|Hunter Valley, NSW, Australia|Byron Bay, NSW, Australia
key=YOUR_API_KEY
 

The Problem

 

When I include the pipe character "|" in the waypoints parameter, I get this error in Power Automate:

 
{
  "body": {
    "title": "Proxy execute request error",
    "status": 400,
    "detail": "ms-plex-targetServiceUrl header must be a valid Absolute Uri.",
    "instance": "/extension/proxy",
    "serviceRequestId": "3572fbb2-4cc2-4e54-9a07-4c87363596a4",
    "exceptionSource": "InvalidProxyExecuteRequestException"
  }
}
 

What I've Tried

 

  1. encodeUriComponent() - Error goes away but waypoints aren't recognized correctly

  2. Manual encoding - Replaced "|" with %7C, same result as above

  3. Environment testing - Works fine in development environment, only fails in sandbox (haven't tested in production yet)


  4.  
 

Questions

 

  1. Why does this only happen in sandbox environment but not development?

  2. Has anyone experienced this in production environments as well?

  3. What's the correct way to handle pipe characters in Power Automate HTTP requests for Google Maps API?

  4. Is there a workaround that preserves the waypoint functionality while avoiding the proxy error?


  5.  
 

Any help would be greatly appreciated!

Categories:
  • stampcoin Profile Picture
    2,359 on at
    Power Automate + Google Maps API: Pipe Character "|" Causing Proxy Error in Sandbox Environment
     @CU09061328-0 Hi,
     
    Have you tried to generate the full URI without any compose?
     
    If possible, compose output of the 'ms-plex-targetServiceUrl' from the header.
     
    This is a link which discussed similar problem . ( maybe not, since don't know the value from the proxy).
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics