Forum Discussion
connection with ftp
I have succeeded in using FTP as a source. I have a .txt file being refreshed several times a day from a third party and I just connect using the csv/txt connector and then input the URL of the file as location (ftp://<server>/<folder>/<filename.txt>).
Only problem is that the data gateway does not support refreshing from a ftp.
So the workaround was to dump ftp as a direct source in Power BI. Instead, I have used MS Flow to copy the file to a folder on a fileshare whenever there is a new file coming in to the FTP location. Then I can use the .txt file in that folder in my model and set up scheduled refresh of my model from the folder location.
In doing research for a project I came across your post, and later a solution that may work for you as well.
The trick is to use Microsoft Flow to copy any new files from the FTP/SFTP server to a OneDrive for Business folder where Power Query can iterate over the contents and load them all to your model.
Here are some links that should prove useful:
https://us.flow.microsoft.com/en-us/connectors/shared_sftp/sftp/
https://www.youtube.com/watch?v=B4dCLtQ53pA
Cheers,