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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard