how to check is .csv file is corrupted or not

Certified Senior Developer

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

Parents Reply
  • 0
    Certified Lead Developer
    in reply to sureshs276515
    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.

Children
No Data