justkawal / excel

Excel Library for Flutter and Dart - https://pub.dev/packages/excel
MIT License
399 stars 209 forks source link

Error decodeBytes Excel xlsx #325

Open RacinesAndres opened 4 months ago

RacinesAndres commented 4 months ago
  1. How to produce the error

I use the _"filepicker 6.1.1" package to select the xlsx.

final result = await FilePicker.platform.pickFiles();

File file = File(result!.files.single.path!);
var bytes = File(file.path).readAsBytesSync();
var excel = Excel.decodeBytes(bytes);
  1. Error

When it passes through the decoder the following error occurs: Unhandled Exception: Exception: custom numFmtId starts at 164 but found a value of 43

error

  1. Version of the error excel: ^4.0.2

  2. Functional version (without error) Excel ^3.0.0

  3. Flutter doctor: [√] Flutter (Channel stable, 3.16.8, on Microsoft Windows [Versi¢n 10.0.19045.4046], locale es-CO) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.3) [√] Android Studio (version 2022.3) [√] VS Code (version 1.86.2) [√] Connected device (4 available) [√] Network resources

michelemazzei commented 4 months ago

Hi, I have the same problem. I think is a problem related of the dates format. I confirm that using the 3.0.0 it works

ajaykumar666 commented 1 month ago

facing the same error when running on the Windows app. any solution? I have checked different version of excel package, nothing works

eldarkk commented 1 month ago

same issue

hutomosaktikartiko commented 1 week ago

I got same issue