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 / Anyone suddenly gettin...
Power Automate
Suggested Answer

Anyone suddenly getting "request headers is too long" and UIFlowParentFlowFailed from PAD flow?

(1) ShareShare
ReportReport
Posted on by 72
Hi everyone
 
I'm suddenly getting an error in my Power Automate flow's "Run flow built with Power Automate for desktop" action. Below is the action's raw output "body" parameter:
 
"body": {
 "error": {
  "code": 400,
  "source": "flow-apim-unitedstates-002-eastus-01.azure-apim.net",
  "clientRequestId": "xxx",
  "message": "The response is not in a JSON format.",
  "innerError": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY>
<h2>Bad Request - Request Too Long</h2>\r\n<hr>
<p>HTTP Error 400. The size of the request headers is too long.</p>\r\n</BODY></HTML>\r\n"
 }
}
 
The flow has been working for months and then started doing this without any change done to it besides maybe re-authenticating connections. Even as the PAD flow does run and executes its actions the Power Automate action returns this error so it considers it as failed. Also worth noting that I checked the input arguments and all of it is under 1k characters and has not changed, so it is strange that in the innerError's HTML it's saying "size of request headers is too long".
 
The PAD flow runs under "Desktop Flow Runs" are marked as Succeeded status but with "UIFlowParentFlowFailed" error.
 
Is anyone else experiencing this or has seen this before? Any recommended actions? It started around February 13th for me.
 
Thank you
I have the same question (0)
  • Suggested answer
    Assisted by AI
    Haque Profile Picture
    3,229 on at
    Hi @aerojean,
     
     
    Apparently the error says "The request headers that is sent to the API are exceeding the allowed size limit"! The error "HTTP Error 400. The size of the request headers is too long."
     
    The probable causes are might be:
    1. There is a high chance that the request includes very large cookies or authentication tokens.
    2. There are too many or large custom headers.
    3. The flow or environment has accumulated excessive header data (e.g., from repeated authentication or session tokens).
     
    Possible actions you can take one by one:
     
    Refresh the connection: Delete and recreate the connection used by the "Run flow built with Power Automate for desktop" action to reset authentication headers.
     
    OR
     
    Go for simplified flow: If your flow is very large and complex or has many nested calls, consider splitting it into smaller flows to reduce header size.
     
    OR
     
    Reduce payload size if possible: Although this error is about headers, sometimes large payloads can indirectly cause oversized headers (e.g., large authorization tokens).
     
    OR

    Clear or reduce cookies and tokens: If your flow or environment uses authentication tokens or cookies, try refreshing or regenerating them. Sometimes stale or oversized tokens cause this.

    OR

    Check for large or unnecessary headers:
    Review your flow’s HTTP or connector actions to see if any headers are being set with large values or repeated unnecessarily.

     

    Please let me know if these help.

     

  • TT-26020214-0 Profile Picture
    2 on at
    I had the same issue, and I kept finding people like us where it just stopped working suddenly, throughout the years.
     
    I eventually chased someone's idea about updating Connections. The desktop flow connection machine/machine group was set to "Select the machine or machine group to connect to", so I selected my group (of one desktop) and updated. This seemed to have fixed the issue, fingers crossed. The option still shows this as if I didn't save it, so perhaps that's expected behavior.
     
    Anyway, I wonder if it's a licensing issue.
  • aerojean Profile Picture
    72 on at
    Thanks everyone for your answers. However, the issue solved itself as it is now running as it was before with no error and no change or action was done on my part.
  • Haque Profile Picture
    3,229 on at
    Hi @aerojean,
     
    This is interesting - the problem came, the problem gone, giving a trouble in between. In my POV, it may reappaer - so it's alwasy better to have the root cause. This type of automagical problem sometime creates suffocaiton. Be vigilant!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 784

#2
Valantis Profile Picture

Valantis 589

#3
Haque Profile Picture

Haque 522

Last 30 days Overall leaderboard