Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create folder bad gateway

(0) ShareShare
ReportReport
Posted on by 42

I have a fairly simple flow

 

  1. Sharepoint item created
  2. get item
  3. Create new folder
  4. Grant access to folder
  5. Send email

 

For some reason one of the flows gets a bad request error on the create folder.  

 

The error message:

 

      "message""The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)\r\nclientRequestId: 4465bad5-4143-4143-b52d-5afe550a8272\r\nserviceRequestId: 4465bad5-4143-4143-b52d-5afe550a8272"
 
What I don't understand is why. Other times the flow runs without problems. There is nothing obviously different about this item name to cause this issue. It is unclear what sort of format requirement limitations there are.
 
Resubmitting results in failure.

 

BenChainCode_0-1631875460715.png

 

I see similar issue was posted before but not solved: https://powerusers.microsoft.com/t5/Building-Flows/Bad-gateway-creating-folder/m-p/456881#M54546

 

  • Formatron Profile Picture
    63 on at
    Re: Create folder bad gateway

    Thank you so much. I was having the same problem.

     

    Another example of Power Automate's lousy error handling.

  • rrovira Profile Picture
    Microsoft Employee on at
    Re: Create folder bad gateway

    Hello, @BenChainCode!

     

    Interesting! I wouldn't have thought that a single space at the end of the path would be the cause the issue! Would you please mark your answer as the solution so other user can check this solution? 😁

     

    Thanks in advance and cheers!

  • Verified answer
    BenChainCode Profile Picture
    42 on at
    Re: Create folder bad gateway

    Of course the second I press post I find the issue:

     

    There was a space at the end of the generated folder name string. Deleting that solved it. 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June 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 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1