Corrupted excel file - question

Hello,

is there any way to check if excel file is corrupted through aspose.cells API for Java?

Regards,
Zeljko

@Zeljko,

Thanks for your query.

Well, I am afraid it is impossible to detect if an Excel file is corrupted. Any invalid data in the file can cause such kind of issue. Without processing the data record, no one can know it is invalid, so before finishing the process for the complete data set, there is no guarantee that the template file contains no invalid data.

Also, even our APIs can read the template file successfully, still there is no guarantee that the file can be processed by MS Excel fine too. May be there are some invalid data constraints we do not verify but MS Excel does, similarly maybe some data was not parsed by us but MS Excel does this, etc.