Comments (13)
Sorry but I'm not competent enough for this
from excel.
dart_sdk.js:5463 Uncaught (in promise) Error: Expected a value of type 'Iterable', but got one of type 'ReversedListIterable'
at Object.throw_ [as throw] (dart_sdk.js:5463:11)
at Object.castError (dart_sdk.js:5422:15)
at Object.cast [as as] (dart_sdk.js:5745:19)
at Iterable.as_C [as as] (dart_sdk.js:5343:19)
at [dartx.addAll] (dart_sdk.js:17757:27)
at descendants.XmlDescendantsIterator.new.push (descendants.dart:37:11)
at new descendants.XmlDescendantsIterator.new (descendants.dart:30:5)
at get iterator [as iterator] (descendants.dart:24:37)
at get iterator [as iterator] (dart_sdk.js:25932:67)
at get iterator [as iterator] (dart_sdk.js:24970:65)
at [Symbol.iterator] (dart_sdk.js:22896:40)
at WhereIterable.new.forEach (dart_sdk.js:22928:29)
at [parseRelations] (parse.dart:47:32)
at [startParsing] (parse.dart:15:5)
at new excel$.Excel. (excel.dart:75:12)
at Object._newExcel (excel.dart:17:20)
at Excel.decodeBytes (excel.dart:85:12)
at importExcelFile (import_excel_file.dart:41:23)
at importExcelFile.next ()
at dart_sdk.js:41432:33
at _RootZone.runUnary (dart_sdk.js:41265:59)
at _FutureListener.thenAwait.handleValue (dart_sdk.js:36468:29)
at handleValueCallback (dart_sdk.js:37039:49)
at _Future._propagateToListeners (dart_sdk.js:37077:17)
at [_completeWithValue] (dart_sdk.js:36912:23)
at async._AsyncCallbackEntry.new.callback (dart_sdk.js:36946:35)
at Object._microtaskLoop (dart_sdk.js:41740:13)
at _startMicrotaskLoop (dart_sdk.js:41746:13)
at dart_sdk.js:37302:9
from excel.
Could you provide an example file where the error shows up?
This will help us to investigate the issue
from excel.
@FauconSpartiate . Do you mean an Excel example file or the code ?
from excel.
Both, but you already provided the code, so we're only missing the excel file that causes the problem.
from excel.
from excel.
Hi @FauconSpartiate . Any news about this bug ?
from excel.
Nope, any help for digging into the codebase is welcome.
If you're motivated, you can also do it.
from excel.
@christophe-andre Is it still reproducible in 3.0.0
?
from excel.
@christophe-andre
I just tried to reproduce it, but I couldn't help but notice that you provided a .csv file and not .xlsx?
Do you also get the error by creating a new excel file and importing this csv? I didn't get one by doing this.
from excel.
By importing the csv
from excel.
@christophe-andre Are you still experiencing the issue on 3.0.0
?
from excel.
Hi @FauconSpartiate
I have another problem with on 3.0.0
My code
FilePickerResult? pickedFile = await FilePicker.platform.pickFiles(
type: FileType.custom,
allowedExtensions: ['xlsx'],
allowMultiple: false,
);
if (pickedFile != null) {
var excelData = pickedFile.files.single.bytes;
// var excel = Excel.decodeBytes(excelData);
List data = excelData as List;
var excel = Excel.decodeBytes(data);
If i don't convert into List this error appears
The argument type 'Uint8List?' can't be assigned to the parameter type 'List'.
The runtime error is
Uncaught (in promise) Error: Unsupported operation: Excel format unsupported. Only .xlsx files are supported
at Object.throw_ [as throw] (dart_sdk.js:5402:11)
at Excel.decodeBytes (excel.dart:95:7)
In attachment the file i want to import
Ingredients.xlsx
from excel.
Related Issues (20)
- Help: Determining the type of a cell HOT 1
- How to use custom Chinese fonts
- Excel - Roadmap Tasks HOT 2
- Default constructors for simplicity
- rename sheet breaks with archive 3.4.10 HOT 1
- Excel.decodeBytes -> Bad State too many elements
- 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 1
- Cannot delete sheets HOT 3
- 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
- Cells with a time below `02:25:00` are recognized as `DateTimeCellValue` HOT 1
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.