How to remove Line Breaks from Excel file in ADF

Priya Jha 871 Reputation points
2020-09-10T05:12:04.197+00:00

Hi All,

I have a scenario wherein my Excel file has data with line breaks. If i convert this excel file to CSV, even my CSV file contains line break in data and i am getting error while reading this CSV through PolyBase table in Azure Synapse.

I wanted to know how to remove line breaks from excel file before converting it to CSV using ADF or is there a way to remove line breaks from CSV file.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,681 questions
{count} vote

2 answers

Sort by: Most helpful
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2020-09-10T06:30:32.397+00:00

    Hi @Priya Jha ,

    Thanks for posting the query.

    This can be achieved by using replace function of derived column in dataflow as shown below in GIF and snap.
    23628-replacederivedcolumnadf.png
    23704-replacelinebreaksadf.gif

    Hope this helps! Please let us know if it is not aligning with the requirement or for further queries and we will be glad to assist.


  2. Dinesh Prajapati 126 Reputation points
    2023-01-10T06:07:42.37+00:00

    Hi team.. this is not achived for CSV files. It works only for xlsx file.

    Can someone tell me how we can do this for csv file ?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.