Showing results for 
Search instead for 
Did you mean: 
Not applicable

Key 'gateway' not found in connection profile.

I'm trying to create a flow to copy a file from SPOnline to a fileserver on-premises. I have added a File Server connection to a gateway in PowerBI admin center. I used the Copy Files from SharePoint to your PC template and I'm getting the following error. What am I doing wrong?

"status": 400,
"message": "Key 'gateway' not found in connection profile.\r\nclientRequestId: d2ecac62-c5ca-4be0-ac72-ac0031bb0f1f",
"source": ""
Community Support Team
Community Support Team

Re: Key 'gateway' not found in connection profile.

Hi @Anonymous,


Have you tried creating a File system connection in Flow-connection?

I have made a test on my side and don't have the issue that you mentioned.


I didn't add a connection in the Power BI admin center, but instead added a connection directly in Flow-Setting-Connection.

Make sure there is a File system connection in Flow connection list, and its status need to be Connected.

Besides, please update Gateway to the latest version, and Gateway needs to be used in the default environment.

Please take a try and see if issue still exists.


Best Regards,


Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,091)