7/1/2025 12:30:52 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
An item with the same key has already been added - After installing bundle.
Posted: 26 Feb 10 11:11 AM
|
I am getting the following error when building my project. I installed a bundle from a project differences manifest using my development project to upgrade another project. I can't seem to get rid of this error now.
Has anyone come across this before?
ERROR - System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at Sage.Platform.Orm.Entities.CodeSnippetLibraryBase.InitializeLibrary() at Sage.Platform.Orm.Entities.CodeSnippetLibraryBase.CompileSnippetAssembly(Boolean force) at Sage.Platform.Orm.Entities.CodeSnippetManager.BuildAllLibraries(Boolean forceOverwrite) at Sage.Platform.AdminModule.AdminModuleInit.GenerateCodeSnippetLibraries(BuildType buildType) at Sage.Platform.AdminModule.AdminModuleInit.BuildWebObjectsImpl(OperationStatus op) |
|
|
|
Re: An item with the same key has already been added - After installing bundle.
Posted: 26 Feb 10 1:54 PM
|
Typically you get this by copying a form and renaming it then adding it back into the vfs. This works until you bundle or package the changes. Here is why... Inside the form is a unique ID, and this ID is added to the modelindex.xml Modelindex can not process the duplicate.
Bundles do bad things and as well as aa.
To fix, generate a few forms, strip the id's the delete them, from the aa deleted bin too. now put the id's into the duplicated forms in source vfs, re-bundle and it should work. |
|
|
| |
|
Re: An item with the same key has already been added - After installing bundle.
Posted: 02 Mar 10 8:18 AM
|
I found them when i tried to apply a bundle and since the form id becomes the tree node index, the duplicate id turned into only one node so only one of the forms showed (I had duplicated 4 forms). In simpler words, generate a Difference Manifest (ON SCREEN, once saved and reloaded it'll drop the duplicates). And compare that to the same view after a saving/load. The duplicates will show in one and not the other.
A better option is to load the modelindex.xml into a db and do a group by id, having count>2. |
|
|
| |
| |
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|