I want to do a separator check in an incoming CSV file, for example, if I have a separator other than";" I reject the file, otherwise I continue my processing.
You will have to count the ";" separator if you would like to validate whether the record is matching the schema. But this means you will have to read the file twice one as full row and another in delimited format. So I would not suggest this method for big volumes.
Another interesting method is to read the data and pass it to tFileComplianceCheck component. This is a better idea since you can segregate the good and bad records separately. I would suggest you to create a sample job and test your use case.
If the answer has helped you, could you please mark the topic as resolved? Kudos are also welcome :-)
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Find out about Talend's 2019 Summer release
Talend continues to revolutionize how businesses leverage speed and manage scale
Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend