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 : nCafOc76k+WaKyFiiG1zQE
Power Automate - Building Flows
Unanswered

"BadRequest. Http request failed as the content was not valid" in Power Automate

Like (0) ShareShare
ReportReport
Posted on 14 Sep 2023 16:47:57 by

I received an error message stating "BadRequest. HTTP request failed due to invalid content: 'Unable to translate bytes [E1] at index 81 from the specified code page to Unicode.'". This error occurred when I made an HTTP request to a customized API. The issue is related to the presence of the character "ç" at index 81 in the API response. Despite my attempts to set the "Content-Type" header to "application/json;charset=UTF-8", the problem persists. Are there any known workarounds for this issue?

 
I have the same question (0)
  • SC-30072038-0 Profile Picture
    on 14 Sep 2023 at 17:34:25
    Re: "BadRequest. Http request failed as the content was not valid" in Power Automate

     

    The character "ç" is in the API's response because it naturally appears there. I sent a JSON request to the API, and it sent back this response:

     

    jsonCopy code
    { "success": false, "codcliente": "000001", "msg": "AJUDA:REGBLOQ Este registro está bloqueado para uso. SB1-Descrição Genérica do Produto" }
     

    I can't change how the API responds, and right now, it seems I can't even replace the caracthere because it does not process in the output of the action:

     

    Sthefanie_0-1694712138962.png

  • Michael E. Gernaey Profile Picture
    47,180 Super User 2025 Season 2 on 14 Sep 2023 at 17:14:21
    Re: "BadRequest. Http request failed as the content was not valid" in Power Automate

    I would use a compose and replace or remove that character and then use the output of the compose as your body.

     

    Do you know how that character got there? just wondered if it could be stopped earlier. But above is how I would do it.

    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

Loading started
Loading complete