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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

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
lbendlin
Esteemed Contributor III

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
lbendlin
Esteemed Contributor III

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

Anonymous
Not applicable

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

lbendlin
Esteemed Contributor III

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.

Anonymous
Not applicable

Hi @Anonymous 

 

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!

Anonymous
Not applicable

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

 

 

Anonymous
Not applicable

Hi @Anonymous 

 

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

Helpful resources

Announcements
Users online (27)