apache-poi

JAVA Code to Create an Excel File in Relative Path

Using excel files is one of the most common method for test data and other types of data management. The java code to create an Excel file is very easy and most of the code is self explanatory. Lets have a look at the same:   Eclipse needs to be pointed to the required JAR …

JAVA Code to Create an Excel File in Relative Path Read More »

Apache POIXML Exception: InvalidFormatException:Package should contain a content type part [M1.13]

Problem: I received following error while using “Apache POI(XSSF API)” for reading xlsx file”. Exception occurred during playback of script [TC002_Login] [CRFCN0019E: RationalTestScriptException on line 45 of script TC002_Login – org.apache.poi.POIXMLException: org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13].]. Below is the error displayed in log file: exception_name = org.apache.poi.POIXMLException exception_message = org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package …

Apache POIXML Exception: InvalidFormatException:Package should contain a content type part [M1.13] Read More »

Scroll to Top