Created attachment 38600 [details] Test case to produce a file that Excel will have trouble with When mixing XSSF and SXSSF and not creating XSSF cells in the correct order, the resulting file will contain the broken cell order, leading Excel to display a repair option and losing data. This is achieved by adding XSSF cells and then adding new rows with SXSSF, thus bypassing both mechanisms that would have sorted the cells. I assume calling XSSFRow.onDocumentWrite for the sorting even when dimensionOverride is set would fix the issue.