Hello
I got an error when importing DataTable using ImortDataTable. I know what causes this error, Actually one of my data row containing "="at the beginning of the string. And we are importing DataTable like "worksheet.ImportDataTable(dtExport, True, 1, 1, False)"( Making preserve type "false") because we wanted that data type of column decided based on value because we are applying date time format and we are storing the date in a varchar field in a database. If we change preserve type false to true, It is working fine. But the date format is not applied.
So is there any way to handle this situation?
Here is the detail of Exception.
"Message":"An error has occurred.","ExceptionMessage":"This is not a valid name. Name should not be same as the cell name.","ExceptionType":"System.ArgumentException","StackTrace":" at Syncfusion.XlsIO.Implementation.Collections.WorkbookNamesCollection.Add(String name)\r at Syncfusion.XlsIO.Implementation.FormulaParser.CreateLocalName(Int32 iRefIndex, String strToken, ParseParameters arguments, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options)\r at Syncfusion.XlsIO.Implementation.FormulaParser.CreateNamedRange(String strToken, ParseParameters arguments, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options, Int32 iRefIndex)\r at Syncfusion.XlsIO.Implementation.FormulaParser.ParseIdentifier(String identifier, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options)\r at Syncfusion.XlsIO.Implementation.FormulaParser.CreateNamedRange(String strToken, ParseParameters arguments, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options, Int32 iRefIndex)\r at Syncfusion.XlsIO.Implementation.FormulaParser.ParseIdentifier(String identifier, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options, ParseParameters arguments)\r at Syncfusion.XlsIO.Implementation.FormulaParser.ParseFirstOperand(Priority priority, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions& options, ParseParameters arguments)\r at Syncfusion.XlsIO.Implementation.FormulaParser.ParseExpression(Priority priority, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options, ParseParameters arguments)\r at Syncfusion.XlsIO.Implementation.FormulaParser.ParseExpression(Priority priority, Dictionary`2 indexes, Int32 i, ExcelParseFormulaOptions options, ParseParameters arguments)\r at ...