Hi,
The attached Excel file was generated with openpyxl (version 3.0.6). When opening this file in Excel 2016 I sometimes receive the below error:
"We found a problem with some content in '<filename.xlsx>'. Do you want to recover as much as we can? If you trust the source of this workbook, click Yes"
The log file of Excel's repair doesn't provide any insight on what went wrong.
The problem isn't fully reproducible. Sometimes the file opens correctly but sometimes I get an error. However, once this error has been received the file can no longer be opened correctly, until the file is recovered. After the file is recovered the error is gone.
The script generates an Excel file with 4 Work Sheets. The first three are empty and the last one contains 13 empty scatter charts. It seems that if we decrease the number of scatter charts (<13) or decrease the number of worksheets (<4) the file that is generated can be opened correctly.
Attached are the script and the corrupted Excel file. Any advice or direction on how to resolve this issue would be very much appreciated.