MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

IgnoreTemplateParameterMissing is ignored for complex objects

Open blahetal opened this issue 1 year ago • 0 comments

Excel Type

  • [X] XLSX
  • [ ] XLSM
  • [ ] CSV
  • [ ] OTHER

Upload Excel File

miniExcelTemplate1.xlsx

MiniExcel Version

1.31.2

Description

MiniExcel can handle IgnoreTemplateParameterMissing for single template parameters but it is not handled complex objects when it is ignored Say, I use {{data.p1}} and {{data.p2}} in xlsx template but do not set p2 in source data, then template rendering will fail with an error message that p2 is missing. The exception being thrown is KeyNotFoundException so IMO it is a bug rather than an intended behavior.

blahetal avatar Aug 28 '23 16:08 blahetal