Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Talendians,
I have a question. How do i handle if there is a pipe in my field in my input file?
For example: 1234|DAVID|SCHRUTE|PARIS|FRANCE|EUR|OPE|215.555.32
Here, you can see DAVID|SCHRUTE is supposed to be the value of the field, however the pipe between DAVID and SCHRUTE is causing them to think its two different fields but its not. So how can i identify this row and reject the row and write to a file in Talend? Is there anything specific in settings that i could change?
Any help is appreciated.
@desanip , One way is you should request for the input data in text enclosure of "" then you can use the csv option of tfileinputdelimitted.
and the data should be like below
1234|"DAVID|SCHRUTE"|"PARIS"|"FRANCE"|"EUR"|"OPE"|215.555.32
@manodwhb Is there anyway i can reject the record if i encounter pipe between my field? I am pipe as my delimiter too.
can talend handle this sort of requirement?
@desanip , may be you can try to check each row structure against schema in advanced setting of tFileinputDelimitted component and see you can take rejects from that component.