Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated files are broken #6

Open
The-Johnson opened this issue Nov 18, 2022 · 9 comments
Open

Generated files are broken #6

The-Johnson opened this issue Nov 18, 2022 · 9 comments

Comments

@The-Johnson
Copy link

I tried running the test() to generate the example file, but when I try to open it I get:

"Alert:
We found a problem with some content in ’arrayToExcelTest.xlsx’. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."

I click Yes and Excel tries to recover the file, it opens and gives me this:

"Excel was able to open the file by repairing or removing the unreadable content."

I click on Veiw and get another error message:

"No more new fonts may be applied. Please close some other documents and try again."

No other documents are in fact open. Excel freezes at this point.

Here is the repair log:

"
Repair Result to example1.xml

Errors were detected in file ’example.xlsx’Excel completed file level validation and repair. Some parts of this workbook may have been repaired or discarded.Replaced Part: /xl/worksheets/sheet1.xml part with XML error. Load error.
"

I was once able to view the contents of the file, the invoice sheet was blank, but the other two sheets seemed fine. Most tries my excel becomes unresponsive though.

To try and diagnose this, I simply created a blank book:

let book = XWorkBook()
var sheet = book.NewSheet("Test")

This results in the exact same errors.

@dendude
Copy link

dendude commented Jan 5, 2023

I have the same error

@Sirlon
Copy link

Sirlon commented Jan 12, 2023

The problem seems to be anywhere inside the generated theme1.xml . I have replaced the string with exceljs xml and the error was gone.

@jearle1974
Copy link

Be nice to see this fixed.

@IhorKram
Copy link

nop, this doesn't help me..... (

@R3dlabell
Copy link

Is there already some workaround to fix broken Excel file? I still get that error when opening file I created.

@Rissmon
Copy link

Rissmon commented Aug 7, 2023

Having the same error. Any solution?

@squircle12
Copy link

Same issue here

@telcosolutions
Copy link

Error still there. Doesn't look like swiftxlsx is supported anymore.

@RickStreet
Copy link

I'm getting the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants