Forum Discussion

Halina1560's avatar
Halina1560
Copper Contributor
May 04, 2021

/xl/styles.xml part with XML error. (Styles) Load error.

Hello everyone

 

I am getting this very annoying bug when using python panda ExcelWriter (engine='xlsxwriter'). I am colouring in specific cells of the worksheet, but when I try and open the file with excel I get this error message:  /xl/styles.xml part with XML error. (Styles) Load error.

and then I can only recover the document without the formatting. I have imported xlsxwriter and have no error messages from python. Thanks in advance for any tips!

1 Reply

  • JKPieterse's avatar
    JKPieterse
    Silver Contributor
    Can you have it generate an example workbook and upload it here? Please indicate which cells you tried to color.

Resources