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

Query faild on specific xlsx file, throws ExcelColumnNotFoundException #585

Closed
1 of 4 tasks
AZhrZho opened this issue Apr 24, 2024 · 0 comments
Closed
1 of 4 tasks

Comments

@AZhrZho
Copy link
Contributor

AZhrZho commented Apr 24, 2024

Excel Type

  • XLSX
  • XLSM
  • CSV
  • OTHER

Upload Excel File

Issue.xlsx

MiniExcel Version

623ecc8

Description

public class IssueVO
{
    public string Col1 { get; set; }
    public string Col2 { get; set; }
    public string Col3 { get; set; }
}
       
var items = MiniExcel.Query<IssueVO>("issue.xlsx").ToList();
MiniExcelLibs.Exceptions.ExcelColumnNotFoundException : ColumnName : Col2, CellRow : 2, value of String type not found.

ExcelOpenXmlSheetReader.ThrowExcelColumnNotFoundException(ExcelColumnInfo pInfo, Int32 rowIndex, String startCell, IDictionary`2 headers, IDictionary`2 row) 行 518
ExcelOpenXmlSheetReader.QueryImpl[T](IEnumerable`1 values, String startCell, Configuration configuration)+MoveNext() 行 499
MiniExcel.Query[T](Stream stream, String sheetName, ExcelType excelType, String startCell, IConfiguration configuration)+MoveNext() 行 73
MiniExcel.Query[T](String path, String sheetName, ExcelType excelType, String startCell, IConfiguration configuration)+MoveNext() 行 66
Enumerable.Count[TSource](IEnumerable`1 source)
MiniExcelIssueTests.Issue20240424() 行 3493
AZhrZho added a commit to AZhrZho/MiniExcel that referenced this issue Apr 24, 2024
@AZhrZho AZhrZho mentioned this issue Apr 24, 2024
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

1 participant