
Creator
2020-03-31
10:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remove new line from my source data
Hi All,
I am receiving new lines between my text data for one of the source fields. The data in comments field is coming as as eg:
Input data
===========
There is a
newline space in this column
Output data expected
================
There is a newline space in this column.
Please note, source is not a flat file but a relational source. I have created a simple job design
Source DB===>tLogRow=>tFileOutputdelimited.
How to resolve this issue. I am new to Talend.
803 Views
1 Solution
Accepted Solutions

Champion II
2020-03-31
10:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the following expression in a tMap or tJavaRow to eliminate every \n from your input:
row1.inputField.replaceAll("\\n", " ")
row1.inputField.replaceAll("\\n", " ")
805 Views
3 Replies

Champion II
2020-03-31
10:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use the following expression in a tMap or tJavaRow to eliminate every \n from your input:
row1.inputField.replaceAll("\\n", " ")
row1.inputField.replaceAll("\\n", " ")
806 Views

Creator
2020-03-31
11:07 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Works perfectly fine!! thanks for your help
803 Views

Champion II
2020-03-31
11:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Great, don't forget to mark your case as solved
803 Views
