Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
TonyHansson
Frequent Visitor

Connect to FTP folder with txt.files

Hi

 

I have succesfully connected PowerQuery to a specific txt. file on a FTP server, using the username and pasword:

 

ftp://username:password@ftp2-internal.gategroup.com/P07/

 

Using the get data from text/csv.

 

I want power query to access the folder, so I can choose the neewest file, but this is not working, using get data from folder:

 

= Folder.Files("\\ftp://username:password@ftp2-internal.gategroup.com/P07/")

 

Can I do this ?

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Folder.Contents or Folder.Files is not supported for ftp sources. However, you can connect to a single file through ftp source which you have been doing.

The only way out is to get the files down to a folder on a local machin/network machine/Onedrive/Sharepoint etc.

You will have to constantly query ftp to locate the change/new files and download them. Consult thread where Microsoft Flow has been used for this purpose -  https://community.powerbi.com/t5/Power-Query/connection-with-ftp/td-p/91792 

But if this is a once or twice a day sort of operation, just download the files and use the downloaded files through Folder connectors.

View solution in original post

2 REPLIES 2
TonyHansson
Frequent Visitor

Hi @Vijay_A_Verma 

 

Thank you for your help, I will not use more time on this.

 

Regards

 

Tony

 

Vijay_A_Verma
Super User
Super User

Folder.Contents or Folder.Files is not supported for ftp sources. However, you can connect to a single file through ftp source which you have been doing.

The only way out is to get the files down to a folder on a local machin/network machine/Onedrive/Sharepoint etc.

You will have to constantly query ftp to locate the change/new files and download them. Consult thread where Microsoft Flow has been used for this purpose -  https://community.powerbi.com/t5/Power-Query/connection-with-ftp/td-p/91792 

But if this is a once or twice a day sort of operation, just download the files and use the downloaded files through Folder connectors.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors