Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Tmap from Sql to tfilidelimited

Hello.
The problem is that the csv file creates new line if ascii_char(13) and ascii_char(10) is found on adress column
I want to replace all ascii_char(13) and ascii_char(10) from that string.
row1.ADRESS.replaceAll(" "," "); How can I express Ascii Char here?
File is ISO-8859-15.
Thanks in advance.
Labels (2)
24 Replies
ytuzet
Creator
Creator

You forgot, it happens 😜
Anonymous
Not applicable
Author

Here goes the screen shot
ytuzet
Creator
Creator

can you unplugged the tmap and place a tlogrow instead with a screenshot of the result ?
ytuzet
Creator
Creator

can you unplugged the tmap and place a tlogrow instead with a screenshot of the result ?
Anonymous
Not applicable
Author

Here goes
ytuzet
Creator
Creator

re-plug your tMap and test with row1.ADDRESS.replaceAll("\r\n"," ").replaceAll("\n"," ");
Anonymous
Not applicable
Author

Perfect.
Thank YOU!
Have a nice Xmax!
ytuzet
Creator
Creator

Thx.
That was your present 😜
janhess
Creator II
Creator II

re-plug your tMap and test with row1.ADDRESS.replaceAll("\r\n"," ").replaceAll("\n"," ");

Probably best to do row1.ADDRESS.replaceAll("\r"," ").replaceAll("\n"," "). That way you catch any lone carriage returns.
Anonymous
Not applicable
Author

Hi janhess,
re-plug your tMap and test with row1.ADDRESS.replaceAll("\r\n"," ").replaceAll("\n"," ");

Probably best to do row1.ADDRESS.replaceAll("\r"," ").replaceAll("\n"," "). That way you catch any lone carriage returns.
I have similar problem and tried with your solution. It's almost work but there are two blank spaces everywhere. I've tried with replaceAll(" +",""), but no luck.
Could you help me on this?
Thanks in advance.