An item with the same key has already been added.

Posts   
 
    
J.Jacobus
User
Posts: 4
Joined: 22-Sep-2013
# Posted on: 07-Oct-2013 18:00:06   

I am getting the following when generating code from sql server 2012 database and I am using LLBLGen Pro version 4.0. Build July 9th, 2013

Please advise what should I do in this situation ? -----[Core exception]-------------------- at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.CreateTableNode(DBTable table) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.AddTablesToSchemaNode(DBSchema schema, TreeNode schemaNode) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.AddSchema(TreeNode schemasRoot, DBSchema schema) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.AddCatalog(TreeNode driverNode, DBCatalog catalog) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.AddMetaDataForDriver(DatabaseMetaData metaData) at SD.LLBLGen.Pro.Gui.Controls.CatalogExplorer.HandleMetaDataChanged(MetaDataChangeType typeOfChange, DatabaseMetaData metaData) at System.EventHandler1.Invoke(Object sender, TEventArgs e) at SD.Tools.BCLExtensions.SystemRelated.EventExtensionMethods.RaiseEvent[T](EventHandler1 handler, Object sender, T arguments) in c:\Myprojects\VS.NET Projects\BCLExtensions_hg\SystemRelated\EventExtensionMethods.cs:line 62 at SD.LLBLGen.Pro.ApplicationCore.ProjectClasses.ProjectController.MetaData_MetaDataChanged(Object sender, ElementChangedEventArgs2 e) at SD.Tools.BCLExtensions.SystemRelated.EventExtensionMethods.RaiseEvent[T](EventHandler1 handler, Object sender, T arguments) in c:\Myprojects\VS.NET Projects\BCLExtensions_hg\SystemRelated\EventExtensionMethods.cs:line 62 at SD.Tools.Algorithmia.GeneralDataStructures.CommandifiedList1.NotifyChange(ListChangedType changeType, Int32 oldIndex, Int32 newIndex) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\GeneralDataStructures\CommandifiedList.cs:line 375 at SD.Tools.Algorithmia.GeneralDataStructures.CommandifiedList1.PerformInsertItem(Int32 index, T item) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\GeneralDataStructures\CommandifiedList.cs:line 518 at SD.Tools.Algorithmia.GeneralDataStructures.CommandifiedList1.<>c__DisplayClassc.<InsertItem>b__a() in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\GeneralDataStructures\CommandifiedList.cs:line 236 at SD.Tools.Algorithmia.Commands.Command1.Do() in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\Commands\Command.cs:line 178 at SD.Tools.Algorithmia.Commands.CommandQueue.PerformDoRedoCommand(Boolean performRedo) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\Commands\CommandQueue.cs:line 151 at SD.Tools.Algorithmia.Commands.CommandQueue.DoCurrentCommand() in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\Commands\CommandQueue.cs:line 127 at SD.Tools.Algorithmia.Commands.CommandQueueManager.EnqueueAndRunCommand(CommandBase toEnqueueAndRun) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\Commands\CommandQueueManager.cs:line 394 at SD.Tools.Algorithmia.Commands.Command1.DoNow(Action doFunc, Action undoFunc, String description) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\Commands\Command.cs:line 161 at SD.Tools.Algorithmia.GeneralDataStructures.CommandifiedList1.InsertItem(Int32 index, T item) in c:\Myprojects\VS.NET Projects\Algorithmia_hg\SD.Tools.Algorithmia\GeneralDataStructures\CommandifiedList.cs:line 236 at SD.LLBLGen.Pro.ApplicationCore.MetaData.MetaDataStore.AddMetaData(DBDriverBase driverUsed, IEnumerable1 populatedCatalogs) at SD.LLBLGen.Pro.Gui.Classes.GuiController.PerformAddMetaDataFromDatabaseAction() at SD.LLBLGen.Pro.Gui.Controls.ProjectExplorer._commandManager_CommandClick(Object sender, CommandEventArgs e) at Janus.Windows.UI.Internal.JNSAU.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at Janus.Windows.UI.Internal.JNSAU.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 07-Oct-2013 19:49:05   

This looks like an issue that was fixed in the most recent build. Please try out the latest release.