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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply

Unable to properly merge text file using copy activity in Ms fabric.

I have two text files in Blob Storage that I’m trying to merge using a Microsoft Fabric pipeline with a copy activity. The merge works, but the first row from one of the files disappears. Has anyone else experienced this issue?

1 ACCEPTED SOLUTION

The process assumes that the files have header rows. During an append the header row of each but the first file will be discarded.

 

Specify that they files don't have headers, and provide your own column names.

View solution in original post

6 REPLIES 6
v-jingzhan-msft
Community Support
Community Support

Hi @Sakshi_Khojare 

 

Some sources and destinations might not have an option to specify whether the files have a header row. In that case, one alternative is to use the Dataflow Gen2 instead of Copy data activity. In dataflow Gen2, you can explicitly set the first row as headers or not before copying the data to the destination data storage. 

vjingzhanmsft_0-1734924233154.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

But I our files are stored in ADLS container so will Dataflow Gen2 works ??

 

 

Hi @Sakshi_Khojare 

 

Dataflow Gen2 supports the data source Azure Data Lake Storage Gen2Azure Data Lake Storage Gen2 connector overview

vjingzhanmsft_0-1735003557385.png

However, for the destination, it doesn't support ADLS. Dataflow Gen2 data destinations and managed settings

 

Best Regards,
Jing

lbendlin
Super User
Super User

Did you mean to say "append"  rather than "merge" ?

yes I want to append two text file but while appending 1st line got vanished.

The process assumes that the files have header rows. During an append the header row of each but the first file will be discarded.

 

Specify that they files don't have headers, and provide your own column names.

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! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!