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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sarathD4s
Frequent Visitor

Multiple CSV files having line breakse when combined

Hi All,

 

I am trying to load multiple csv file from a sharepoint folder and when this are combined the text within a particular column gets divided and creates a new row causing error in the sheet. It seems the error happens when the column contains long text that has line break between them

 

Snip of the sample text that gets divided.

sarathD4s_0-1669682811193.png

 

Files are loaded from the sharepoint folder and combined in the normal ways

sarathD4s_1-1669682870750.png

 

sarathD4s_2-1669682880561.png

 

After these files are combined, there will be multiple rows as seen below which will be automatically created causing errors

sarathD4s_3-1669682927105.png

 

 

sarathD4s_4-1669682934617.pngsarathD4s_5-1669682941709.png

 

Can someone help me with a solution for this.

 

Regards,

Sarath

 

4 REPLIES 4
sarathD4s
Frequent Visitor

Further to the issue, i understood, its the line break that causing the issue, i have found some threads online but i couldnt solve the issue

Hi, @sarathD4s 

It is recommended to pre-clean these file data to ensure that these csv files from a sharepoint folder have the same data structure.

You can check if the following thread helps.

Combine CSV files 

Best Regards,
Community Support Team _ Eason

sarathD4s
Frequent Visitor

Hi @amitchandak , thanks for the reply, but clean and trim can only done once it been loaded.

Here New rows are created when the files are loaded so there is no point using trim and and clean after that.

 

amitchandak
Super User
Super User

@sarathD4s , You can use clean and trim on a column to remove newline character, but that will happen only when it is on row

 

Power Query Trim and Clean : https://youtu.be/NRYPsCnS0w4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors