[Solved] File error data may have been lost

File error data may have been lost:

Problem:

File error: data may have been lost.

 File error: data may have been lost.

Solution:

You can see this error when you are creating excel file using apache poi. The below line may cause this error,
 sheet.setColumnWidth(300,300);

Reduce the width values to 250,250
 sheet.setColumnWidth(250,250);

If you still facing the issue, comment the above line and see.

Please post if you have any other solution for the above problem.

Leave a Reply