After generating the excel sheet using Java POI and opening the newly created Excel file I get a message box saying
Excel found unreadable content in "abc.xlxs" .Do you want to recover the contents of this workbook?If you trust the source of this workbook, click 'yes'.
And when I click 'yes' I get some message like this
Excel was able to open the file by repairing or removing the unreadable content
After that I can view the contents in the sheet. How can I remove all these kind of messages while opening it?