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 / Create folder bad gateway
Power Automate
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

 

Categories:
I have the same question (0)
  • Verified answer
    BenChainCode Profile Picture
    42 on at

    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. 

  • rrovira Profile Picture
    Microsoft Employee on at

    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!

  • Formatron Profile Picture
    65 on at

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

     

    Another example of Power Automate's lousy error handling.

  • Suggested answer
    CU06120544-0 Profile Picture
    2 on at
    I came across this problem where I had a period (.) sign at the end of my string of the folder name where it gave bad gateway error. When I removed the period sign it worked.

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 1,005

#2
Valantis Profile Picture

Valantis 825

#3
Haque Profile Picture

Haque 619

Last 30 days Overall leaderboard