Yes this file is from online and likely generated in a non-Excel system. When I re-saved the file it works.
All this makes sense why it isn't working, but is there any other work around besides re-saving via Excel, preferably a programmatic option? On Thu, Nov 5, 2015 at 5:23 AM, Nick Burch <[email protected]> wrote: > On Thu, 5 Nov 2015, Jonathan Hodges wrote: > >> When I attempt to open an Excel file (.xlsx) file I receive the following >> stack trace. >> >> org.apache.poi.openxml4j.exceptions.InvalidFormatException: The part >> /_rels/.rels does not have any content type ! Rule: Package require >> content >> types when retrieving a part from a package. [M.1.14] >> at >> org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:247) >> at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:684) >> at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:275) >> > > Looks like a broken / invalid file to me. Do you know where it comes from? > Perhaps generated by a non-Excel system? > > If you open the file in Excel, do a save-as, does the resaved file work > properly? > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
