hi,
is there any function that we can check is .csv file is corrupted or not?
note:-.csv.file will receive from external system
suggest me best approch?
Discussion posts and replies are publicly visible
sureshs276515 said:sometime we will receive the .csv file in form of excel file
Then this is a severe error, which you should be putting more effort into finding the root of and correcting.
CSV is just a text file containing comma-separated columns of values across newline-separated rows. Anything else is NOT A CSV and should NOT BE NAMED CSV.
Modern Excel (.xlsx) files are actually a ZIP file containing various properties, the main one being an XML file consisting of the sheet(s) data - but to handle these requires FAR different techniques.
CSV cannot have sheets; only Excel (.xlsx) can.Get external system to send proper .xlsx file, then use readexcelsheetpaging(ri!doc, sheetNumber, pagingInfo) per sheet.OR get them to send separate CSV files per sheet.