[resolved] How i can remove a line break in a csv?

One Star

[resolved] How i can remove a line break in a csv?

Hello community!
I'm trying remove a linea break in a csv file, but in my Map i can't do this with usual java code, i'm little newby in talenD world, can you help me please?
Thanks!

Accepted Solutions
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Or you can take a try for this solution: tFileInputFullRow-->tReplace.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
Four Stars

Re: [resolved] How i can remove a line break in a csv?

Hi Vlopez... I don't know what you tried in Java, but here's something that would work in tMap:
row1.columnName.replaceAll("\\r\\n|\\r|\\n", " ")
See other options if this does not do it - http://stackoverflow.com/questions/2163045/how-to-remove-line-breaks-from-a-file-in-java
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Or you can take a try for this solution: tFileInputFullRow-->tReplace.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] How i can remove a line break in a csv?

Thanks guys, both for fast reply.
I try the solution offered by xdshi and this works.

Thanks so much!
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Glad you could solve the issue. Could you please click the "Set this topic as resolved"? Feel free let me know if there is any further help we can give.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] How i can remove a line break in a csv?

hi! i click this link but don't work Smiley Frustrated, what i should do?
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
I have marked it as resolved. Thanks for your feedback.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: [resolved] How i can remove a line break in a csv?

I have this problem now, i have a string field with several information and line breaks, the possible solution does not work, does anyone know how to fix it? or how tFileInputFullRow works? help me

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download