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
Does corrupted file mean a file that cannot be opened at all due to some malfunction or damage?
hiShubham Aware , yes if the file can't open due to password or someother reason's. then that time we should make a entry in db that file is corrupted. for that how we can handle?
PM Exception Flow is your only native way to catch can't open scenarios.Receive File -> Try to Parse CSV -> if Success: Process Data ; if Exception: Write "CORRUPTED" to DB -> Notify Team.
hi Shubham Aware , thanks for quick response, kindly confirm is this (Parse CSV) plug-in?
You can use any available plugin to parse CSV which is available on app market.You can refer thishttps://community.appian.com/b/appmarket/posts/excel-tools
Hi Shubham Aware ,
we have requirement like,
Try the function previewcsvforimport() available in Excel Tools plugin to read the csv file
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.