Bug 48327

Summary: cloneSheet() gives an "Error file: data may have been lost" in Excel 2003 or higher if sheet contains commented cells
Product: POI Reporter: Manuela <manuela.munaretto>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fgiust
Priority: P2    
Version: 3.5-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Manuela 2009-12-02 01:30:27 UTC
Hi all :) 

I use a xls file as template and I need to copy a sheet and filling with data.
Following code:

HSSFSheet familyNameSheet = workBook.cloneSheet(2);

gives following error:

"Error file: data may have been lost"

when I try to open xls file with Microsoft Excel 2003 or higher.

OpenOffice opens file correctly.
Comment 1 Manuela 2009-12-03 02:28:35 UTC
I tried to cancel all comments and Excel opens file without pop-up-ing error message: "Error file: data may have been lost".
Comment 2 nothize 2010-03-18 07:47:00 UTC

*** This bug has been marked as a duplicate of bug 47624 ***