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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] how to replace in a field when the row separator is also

Hello,
I have a delimited file (field separator "\t", row separator "\n") looking like :
1 \tblue \tapple \n
2 \tred \n
\tpeer \n
tFileInputDelimited will fail on line 2 ...
So my idea was to replace the row separator so I will be able to replace \n by "" in the field. Bbut I didn't found a component for that 0683p000009MPcz.png

regards
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Well this format is really big shit 0683p000009MACJ.png. Well, still there is solution of course 🙂 If you know the schema, you can go trough the whole file and detect \t char which seems to be used as column delimiter and repair the file first before it can be read by Talend.
Send me the file to archenroot@gmail.com, I can write small code which will standardize the file.
Ladislav

View solution in original post

26 Replies
Anonymous
Not applicable
Author

You want to replace the \n of the second line, the one in the middle?
Anonymous
Not applicable
Author

You want to replace the \n of the second line, the one in the middle?

I have modified line 2 in my post to reflect what's real
Anonymous
Not applicable
Author

So actually it's not really a tFileDelimited. Do you have only 2 columns?
Anonymous
Not applicable
Author

no the file have 15 columns
Anonymous
Not applicable
Author

But I don't really get it. Could you post a part of what you have and what you want?
Anonymous
Not applicable
Author

in my example the expected result will be :
1\tblue\tapple\n
2\tred\tpeer\n
Anonymous
Not applicable
Author

But why the first line has the right format?
Anonymous
Not applicable
Author

Because it has been entered correctly in the frontend application I guess
In line 2 the operator hit the return key by accident
Anonymous
Not applicable
Author

So sometimes you want to replace the \n, sometimes not?