Magicodes.IE icon indicating copy to clipboard operation
Magicodes.IE copied to clipboard

导出提醒An item with the same key has already been added. 但是model里并没有重复的字段名

Open QinPD opened this issue 3 years ago • 3 comments

Expected behaviour

导出提醒:An item with the same key has already been added. Key: Milestone Status 导出Model截图: image

Actual behaviour

An item with the same key has already been added. Key: Milestone Status 在 System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key) 在 System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) 在 OfficeOpenXml.Table.ExcelTableColumnCollection..ctor(ExcelTable table) 在 OfficeOpenXml.ExcelWorksheet.DeleteColumn(Int32 columnFrom, Int32 columns) 在 Magicodes.ExporterAndImporter.Excel.Utility.ExportHelper1.DeleteIgnoreColumns() 在 Magicodes.ExporterAndImporter.Excel.Utility.ExportHelper1.AddHeaderAndStyles() 在 Magicodes.ExporterAndImporter.Excel.ExcelExporter.ExportAsByteArray[T](ICollection1 dataItems) 在 Magicodes.ExporterAndImporter.Excel.ExcelExporter.<Export>d__5`1.MoveNext()

package versions

Magicodes.IE.Core, Version=2.6.7.0

QinPD avatar Dec 05 '22 08:12 QinPD

可以发一个示例,方便我们进一步排除下

hueifeng avatar Dec 09 '22 01:12 hueifeng

我也遇到这个问题,但是在我门项目同一个仓库dev分支却没出现这样的问题

wuxinheng avatar Apr 21 '23 06:04 wuxinheng

Magicodes.IE.Execl, Version=2.6.1

wuxinheng avatar Apr 21 '23 06:04 wuxinheng