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
  • 0
    Certified Lead Developer

    If you're getting "bad" CSV files, open one in Notepad++ and see what text it contains, and check to see if the 'bad' version is consistently the same.

    If it's consistent, then use the "read text from file" utility to do an initial reading of the CSV file and scan for some of the text you'd expect to (only) see in the 'bad' file.  If so, route elsewhere.  If not, attempt to read it using your in-process reader of choice.  (Note: this requires you to do the reading via a process model, but I'd recommend you do that in any case).

Reply
  • 0
    Certified Lead Developer

    If you're getting "bad" CSV files, open one in Notepad++ and see what text it contains, and check to see if the 'bad' version is consistently the same.

    If it's consistent, then use the "read text from file" utility to do an initial reading of the CSV file and scan for some of the text you'd expect to (only) see in the 'bad' file.  If so, route elsewhere.  If not, attempt to read it using your in-process reader of choice.  (Note: this requires you to do the reading via a process model, but I'd recommend you do that in any case).

Children
No Data