XSSFSheet.removeTable does not remove the links to the table part reference from the sheet Links in sheet XML are: <tableParts count="1"> <tablePart r:id="rId1"/> </tableParts> The tablePart gets not removed by XSSFSheet.removeTable. See https://stackoverflow.com/questions/73339524/xssfworkbook-clonesheet-corrupts-workbook-if-sheet-contains-a-table.
I added r1903395