You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by mohit rathod <mo...@gmail.com> on 2013/05/30 14:14:49 UTC
Re: Getting error while creating a worksheet using XSSFWorkbook class(APACHE 3.5 beta 4)
hey
the error
"Caused by: org.apache.poi.openxml4j.exceptions.InvalidOperationException: A
part with the name '/xl/worksheets/sheet1.xml' already exists : Packages
shall not contain equivalent part names and package implementers shall
neither create nor recognize packages with equivalent part names. [M1.12]"
due to creating xml file for that sheet with same name its happens when
same sheet iterate twice so after iterate once skit next iteration.
how POI read excel is its takes each sheet and create corresponding xml file
and than show xml data to us.
so may be in your case it try to create same xml file twice as it previously
created for same sheet.
the root cause it you are iterate same sheet twice.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org