question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export to different worksheet with cryptic names fail

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
UweKeimcommented, Nov 23, 2016

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.

1reaction
ArneDcommented, Nov 23, 2016

It worked after restarting the program.

However, I could reproduce the error with the following steps:

  • Create new project
  • Add existing file group to project
  • Add atleast 2 existing file groups
  • Export to Excel
  • Select all the files and all the languages
  • Select ‘Export each file group into seperate work sheet’
  • With the following options: image

Hope this helps!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found