Comments (7)
Could you provide an example file where the error shows up?
This will help us to investigate the issue
from excel.
HI, I'm not the OP but have the same issue as them and a couple findings as well.
I got the FormatException: Could not find End of Central Directory Record
when trying to run the library on a .xls that was extracted directly from a web application, and downloaded to the desktop.
Unfortunately I can't share the xls as it has proprietary info... so I deleted the stuff in the file, put in some dummy data, and resaved (still) as .xls (97-2003). However then the error changes to Unsupported operation: Excel format unsupported.
So whatever modern Excel does with saving, it seems the errors change. Thus this may be difficult to replicate....
The web application in question that is generating the xls is rather "legacy", so it may be that older "true" ways of saving .xls had a nuance to them. If someone had a original version of old school Excel and could make a dummy workbook, that would be the best way to test.
EDIT I saw that xls isn't supported anyhow and is closed as "won't fix", so any of this is mute really. But at least maybe explains some behavior for future searches. However, there probably should be a bug fix that if the extension is .xls it immediately gives 'Excel format unsupported' and bails (thus no Central Directory Record exception).
from excel.
yup i got same error Unsupported operation: Excel format unsupported.
when import .xls format @FauconSpartiate
from excel.
.xls files are indeed not supported, as described in many issues that are already closed.
But @chipnetics idea of throwing the correct error to let the user know it's good, I'll try to do that when I can.
Edit: There is already an exception thrown for .xls files. Like @sanburnn mentioned, it is Unsupported operation: Excel format unsupported.
I'm opening a PR to clarify it more that the error is due to the .xls format.
from excel.
Here is a file I found that throws the original error (FormatException: Could not find End of Central Directory Record
):
file_example_XLS_10.xls
from excel.
Fixed in #258
(Actually not fixed, just clarified that it is not supported)
from excel.
@FauconSpartiate oke thankyou
from excel.
Related Issues (20)
- The argument type 'String' can't be assigned to the parameter type 'ExcelColor' HOT 4
- How to parse Excel cell merging information?
- Bug reading SpannedItems as empty HOT 2
- README.md demo doesn't compile since 4.0.3 update
- Couldn't decode ".xls" file HOT 2
- Cannot delete sheets HOT 6
- DateTimeCellValue not working on Windows
- Very inefficient RAM usage HOT 2
- Can't read the XLSX file from http request - Damaged Excel file: Corrupted Excel file HOT 1
- How to save .csv
- Bad state: No element while parsing
- Can I select the sheet I want to open in a file that has multiple sheets?
- update package HOT 5
- Cells with a time below `02:25:00` are recognized as `DateTimeCellValue` HOT 1
- BoolCellValue not working HOT 1
- updatecell doesn't work
- fontsize doens't work
- App will not compile with excel 4.0.3 and flutter 3.24 as of outdated archive 3.4.9 package. HOT 16
- Compile Linux App Error HOT 1
- Renaming/deleting main sheet causes corrupt excel file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excel.