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 / BadRequest 400 saving ...
Power Automate
Unanswered

BadRequest 400 saving outlook attachment to file server

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I have an O365 outlook account, using MS Flow to save email attachments to OneDrive and to SharePoint successfully.  I cannot get MS Flow to save the email attachment to a shared file server on our internal network.  I am getting the dread 'BadRequest' 400 error. In the Create File step, it says 'Key 'gateway' not found in connection profile', source "filesystem-eus2.azconn-eus2.p.azurewebsites.net"

 

Do I have to have a gateway installed?  I do not understand why the authentication to the hosted MS applications (OneDrive and SharePoint) works without issue, but I cannot get it to my file server.  Please help.  

 

Dread400.jpg

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @TheresePawlicki,

     

    Could you please share a screenshot of your flow's configuration?

    How do you create a connection to the File System connector within your flow?

     

    The error message told that the On-premises data gateway could not be found within the connection to the File System connector on your side.

     

    If you want to connect to File Systems on your local or network machines to read from and write to files within Microsoft Flow, you must use the On-premises Data Gateway. In addition, not just the File System connector, if you want to connect to other local servers (e.g. Local SQL Server, Local SharePoint site, etc.) within your flow, you should also use the On-premises Data Gateway to create a connection to these local server.

     

    I have created a connection to the File System connector using the On-premises Data Gateway within my flow and the screenshot as below:12.JPG

     

    I have made a test on my side and please take a try with the following workaround:13.JPGThe flow works successfully as below:14.JPG

     

     

     

    Please take a try to install a On-Premises Data Gateway on your side based on the following article:

    On-premises Data Gateway for Microsoft Flow

     

    More details about the File System connector, please check the following article:

    File System connector

     

     

    Best regards,

    Kris

     

     

  • TheresePawlicki Profile Picture
    11 on at

    Hi Kris,

     

    Here is a screenshot of the configuration.  I have reached to our local IT to request a gateway.  It looks like I am missing that piece. Thanks for your help.  Once I get this working, I will come back.

     

    create file.jpg

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

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 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard