You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by jigna joshi <jj...@asite.com> on 2008/08/05 11:27:42 UTC
The document is not a
workbook@http://schemas.openxmlformats.org/spreadsheetml/2006/main
HI,
I am trying to read xlsx file using org.apache.poi.ss.usermodel.* package.
I am using poi-bin-3.5-beta1-20080718.jar. but it throws exception
Exception: java.io.IOException: org.apache.xmlbeans.XmlException: error:
The document is not a
workbook@http://schemas.openxmlformats.org/spreadsheetml/2006/main: document
element namespace mismatch expected
"http://schemas.openxmlformats.org/spreadsheetml/2006/main" got
"http://schemas.microsoft.com/office/excel/2006/2"
14:52:02,051 INFO [STDOUT] : 140 at
org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:318)
14:52:02,051 INFO [STDOUT] : 140 at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:62)
--
View this message in context: http://www.nabble.com/The-document-is-not-a-workbook%40http%3A--schemas.openxmlformats.org-spreadsheetml-2006-main-tp18827556p18827556.html
Sent from the POI - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
Re: The document is not a
workbook@http://schemas.openxmlformats.org/spreadsheetml/2006/main
Posted by Nick Burch <ni...@torchbox.com>.
On Tue, 5 Aug 2008, jigna joshi wrote:
> Exception: java.io.IOException: org.apache.xmlbeans.XmlException: error:
> The document is not a
> workbook@http://schemas.openxmlformats.org/spreadsheetml/2006/main: document
> element namespace mismatch expected
> "http://schemas.openxmlformats.org/spreadsheetml/2006/main" got
> "http://schemas.microsoft.com/office/excel/2006/2"
Your document is not a real office open xml excel document. It was
produced by an alpha or beta version of office, from back before they
fixed up the namespaces and finilised the spec.
You should open and re-save your file using a release version of office,
to upgrade it to a real office open xml excel document.
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org