Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Séparator check

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

Labels (2)
1 Reply
Anonymous
Not applicable
Author

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