web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / "BadRequest. Http requ...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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?

 
Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,976 Moderator on at

    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

  • SC-30072038-0 Profile Picture
    on at

     

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard