Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
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.
Big Thanks
Hi,
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 🙂
Warm Regards,
Nikhil Thampi