Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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?

 
  • SC-30072038-0 Profile Picture
    on at
    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
    43,515 Super User 2025 Season 1 on at
    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

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492