Created attachment 37461 [details] Payload file Hi, I am using POI 4.1.1 and latest Excel format (Office 365 Excel version : 16.39). My Excel sheet has cells with some comments in it, when I try to clone this sheet it fails with following error. Can you please suggest a solution for this. Exception in thread "main" org.apache.poi.ooxml.POIXMLException: Can't clone sheet - unknown relation type found: http://schemas.microsoft.com/office/2017/10/relationships/threadedComment at org.apache.poi.xssf.usermodel.XSSFWorkbook.addRelation(XSSFWorkbook.java:696) at org.apache.poi.xssf.usermodel.XSSFWorkbook.cloneSheet(XSSFWorkbook.java:627) at org.apache.poi.xssf.usermodel.XSSFWorkbook.cloneSheet(XSSFWorkbook.java:581) at org.apache.poi.xssf.usermodel.XSSFWorkbook.cloneSheet(XSSFWorkbook.java:118) at poi.main(poi.java:14) ----------------------------------------------------------------------------- public static void main(String[] args) throws Exception { Workbook workbook = WorkbookFactory.create(new FileInputStream("Sample.xlsx")); Sheet cloned = workbook.cloneSheet(0); System.out.println("Clone Successful : "+ cloned); }
Bug #56205 updates to a newer edition of the OOXML schema, however even the 5th edition of the standard is from 2015, so without taking a closer look this one likely is still not included as it has "2017" in the type-URI.