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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Flow should create a folder on Sharepoint, but is showing "BadGateway" error. How to fix it?

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I created a flow that should activate every time a new email arrives with the "Final Panel" as a subject. It should create a new folder on Sharepoint and download all attachments there.

The first tests went well and everything was working. Now it fails and shows a 502 "BadGateway" error with this comment

"The filename, directory name, or volume label syntax is incorrect. (Exception from HRESULT: 0x8007007B)\r\nclientRequestId: 166cdb8e-4f0c-4f45-b121-0d2a0c118ae6\r\nserviceRequestId: 166cdb8e-4f0c-4f45-b121-0d2a0c118ae6"
 
Any ideas on how to fix this and why it was working normally at first?
 
3.PNG2.PNG1.PNG4.PNG

 

I have the same question (0)
  • fchopo Profile Picture
    8,001 Moderator on at
    Re: Flow should create a folder on Sharepoint, but is showing "BadGateway" error. How to fix it?

    Hello @Anonymous 

    Could you display the value of the "Subject Path" when creating the folder? It seems flow is trying to create a folder in a non-existing path.

    Hope it helps!

    Ferran

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Flow should create a folder on Sharepoint, but is showing "BadGateway" error. How to fix it?

    Hi!

     

    I've just realized that step "create a folder" is unnecessary. I removed it and all works fine.

     

    Thanks! 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard