web
You’re offline. This is a read only version of the page.
close
Skip to main content
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:
I have the same question (0)
  • stampcoin Profile Picture
    4,082 Super User 2025 Season 2 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics