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?
I assume if a file is corrupt then any function or smart service trying to read data from it will not behave as expected. So you can try reading data from the file and log accordingly if its successful or not.