Export to different worksheet with cryptic names fail
See original GitHub issueHi,
We encountered the following error when exporting each file group to different sheet and using the option ‘use cryptic names’.
Seems the GUID generation is not correct.
Edit: After closing and re-opening the program, it works.
-----------------
A DataTable named '00000000-0000-0000-0000-0000...' already belongs to this DataSet.
-----------------
at System.Data.DataTableCollection.RegisterName(String name, String tbNamespace)
at System.Data.DataTable.set_TableName(String value)
at ZetaResourceEditor.RuntimeBusinessLogic.ExportImportExcel.Export.ExcelExportController.doProcess(PreparedInformation preparedInformation, BackgroundWorker bw, Int32 fileGroupsLength, ICollection`1 savedFiles) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\ExportImportExcel\Export\ExcelExportController.cs:line 451
at ZetaResourceEditor.RuntimeBusinessLogic.ExportImportExcel.Export.ExcelExportController.Process(BackgroundWorker bw) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\ExportImportExcel\Export\ExcelExportController.cs:line 304
at ZetaResourceEditor.UI.ExportImportExcel.ExcelExportWizardForm.progressBackgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in c:\P\ZetaResourceEditor\Source\Main\UI\ExportImportExcel\ExcelExportWizardForm.cs:line 749
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
DuplicateNameException
{
Message="A DataTable named \\'00000000-0000-0000-0000-0000...\\' already belongs to this DataSet.",
Data=
[
]
,
InnerException=null,
TargetSite=RuntimeMethodInfo: RegisterName,
StackTrace=" at System.Data.DataTableCollection.RegisterName(String name, String tbNamespace)\\r\\n at System.Data.DataTable.set_TableName(String value)\\r\\n at ZetaResourceEditor.RuntimeBusinessLogic.ExportImportExcel.Export.ExcelExportController.doProcess(PreparedInformation preparedInformation, BackgroundWorker bw, Int32 fileGroupsLength, ICollection`1 savedFiles) in c:\\P\\ZetaResourceEditor\\Source\\RuntimeBusinessLogic\\ExportImportExcel\\Export\\ExcelExportController.cs:line 451\\r\\n at ZetaResourceEditor.RuntimeBusinessLogic.ExportImportExcel.Export.ExcelExportController.Process(BackgroundWorker bw) in c:\\P\\ZetaResourceEditor\\Source\\RuntimeBusinessLogic\\ExportImportExcel\\Export\\ExcelExportController.cs:line 304\\r\\n at ZetaResourceEditor.UI.ExportImportExcel.ExcelExportWizardForm.progressBackgroundWorker_DoWork(Object sender, DoWorkEventArgs e) in c:\\P\\ZetaResourceEditor\\Source\\Main\\UI\\ExportImportExcel\\ExcelExportWizardForm.cs:line 749\\r\\n at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)\\r\\n at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)",
HelpLink=null,
Source="System.Data",
HResult=-2146232030
}```
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
SSIS Excel Export Sheetname Error
1 Answer 1 ... Error says that SSIS Package does not find the "Report" sheet from excel file. Worksheet (Excel File) which you...
Read more >Export Data From Power Query into Multiple Excel Sheets ...
To do this, you hover your cursor over the column header until you see the black arrow to select the column, then select...
Read more >Get Data from Multiple Excel Files with Different Sheet ...
Solution 2: Filter to the Name Template. If the sheet you are looking for is not always at the same position (index) in...
Read more >Custom naming excel sheets - Ignition
Hey guys, hope all is well, I just figured out how to export different datasets to different worksheets in an excel file which...
Read more >Working with Excel spreadsheets using the SAS/ACCESS ...
Knowing that each worksheet (or named range) should be imported as a separate SAS data set, you might try something like this: data...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Seems that you have unsaved items. The export wizards seems to not check that.
I’ve just published a new version (2.3.0.5), that could fix this, although I still don’t fully understand what could lead to the error condition.
Maybe you could give the new setup a try.
It worked after restarting the program.
However, I could reproduce the error with the following steps:
Hope this helps!