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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
desanip
Contributor
Contributor

Remove Pipe characters in field in a field separator

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.

Labels (5)
5 Replies
akumar2301
Specialist II
Specialist II

if column having value "OPE" is mandatory , Th record will be rejected in any case by tFileInputDemilted.
because OPE will come as decimal which is not parsable.

manodwhb
Champion II
Champion II

@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

desanip
Contributor
Contributor
Author

@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?

manodwhb
Champion II
Champion II

@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.

akumar2301
Specialist II
Specialist II

Hello I forgot to mention , if you want to put the record in reject select
"check each row structure against schema" in tFileInputDelimeter. This will send wrong schemas to reject flow.