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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Sean500
Helper I
Helper I

How to copy multiple csv files from Lakhehouse folder to Warehouse using copy activity?

Hi

 

I have multiple CSV files gets stored in Lakehouse. My lakehouse name is S&P-500, see below screen shot

 

Sean500_0-1695971543254.png

 

CSV file gets stored every day. I need to copy these files into warehouse using copy activity

 

Sean500_1-1695971598614.png

 

I don't how to give in the file path. Can anyone help?

 

 

 

 

1 ACCEPTED SOLUTION
ajarora
Microsoft Employee
Microsoft Employee

To set schema mapping, you can specify a single csv file first, and after setting the mappings, unset the file name setting.

As long as all csv files have same schema, the csv files should get copied into warehouse table.

View solution in original post

3 REPLIES 3
ajarora
Microsoft Employee
Microsoft Employee

To set schema mapping, you can specify a single csv file first, and after setting the mappings, unset the file name setting.

As long as all csv files have same schema, the csv files should get copied into warehouse table.

ajarora
Microsoft Employee
Microsoft Employee

You can leave the file name empty, to indicate that all files in the folder will be copied.

Alternatively you can filter the files to be copied in a folder based on modified time. This setting is in the Copy activity -> Source -> Advanced.

 

ajarora_0-1696017041931.png

 

Thanks @ajarora 

 

When I leave the file name empty I am getting below and unable to do the mapping

 

Sean500_0-1696020269364.png

 

My plan is to load every day alll the files by truncate table in pre script in the destination warehouse. I tried wildcard path as well by giving *.csv in the file name but it is not recognizing.  Please advise

 

Helpful resources

Announcements
Fabric July 2025 Monthly Update Carousel

Fabric Monthly Update - July 2025

Check out the July 2025 Fabric update to learn about new features.

July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.