Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...An item with the same key has already been added. Third party (PackFlash)? DNN? or both?An item with the same key has already been added. Third party (PackFlash)? DNN? or both?
Previous
 
Next
New Post
4/28/2016 3:36 PM
 

Hi,

One of our Third-party extensions is throwing errors (and I'm contacting them as well), but this may be related to a known DNN bug in 7.3.2 and was wondering if anyone had insight or provide help for this.

DNN:   7.3.2,   Third-party extention: PackFlash: 4.6.3  (Constellation)

PackFlash started throwing errors on a fresh PF install following my attempt to assign security roles to certain PackFlash functions - I use one of PF's dashboard modules for CMS/article management called "PF-News" and set permissions in that dashboard's Global Settings->User Permissions.

ActiveTabID:704
ActiveTabName:PF News Dashboard
RawURL:/Admin/PF-News-Dashboard
AbsoluteURL:/Default.aspx
AbsoluteURLReferrer:http://www.diocs.org/Admin
UserAgent:Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID:dad402d1-d451-4902-9414-6cbb17538167
InnerException:An item with the same key has already been added.

DotNetNuke.Services.Exceptions.PageLoadException: An item with the same key has already been added. ---> 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 PackFlash.DNN.Modules.Publishing.DAL.ControllerGlobalSettings.GetGlobalSettingsDB(Int32 PortalID)
   at PackFlash.DNN.Modules.Publishing.DAL.ControllerGlobalSettings.GetGlobalSettingsCache(Int32 PortalID, Boolean RefreshFromDB)
   at PackFlash.DNN.Modules.Publishing.Common.UserCanEditArticle(UserInfo user, Int32 portalid)
   at PackFlash.DNN.Modules.Publishing.ArticleCMS.CMSMultiLingual.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control. (EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   --- End of inner exception stack trace ---

Again, the error is "An item with the same key has already been added."

The errors thrown seemed to indicate a localization issue (multi-lingual). Same for other attempts to load other PF dashboards.  

The errors do not occur anywhere else on a very large site loaded with many other 3rd party extensions.

From this it look like it's a PF problem, but there is the CMSMultiLingual.Page_Load part that make me think we may have a connection to a DNN bug here...

This DNN forum post is showing duplicate key problems for others on DNN 7.3.2 (same as ours), but not with PackFlash. Even though our error is referring to GlobalSettings and Generic.Dictionary, I followed this.

I thought the PortalSettings table was probably showing duplicate entries.  However, I do not have multi-lingual enabled.

To be sure, I checked the PortalSettings table to see if any duplicate entries are there.  There are not.

Another DNN post proposed a possible solution to a duplicate key problem:

https://dnntracker.atlassian.net/brow...

The comments on this tracker page indicate a possible GlobalSettings stored procedure problem that may not have gotten fixed until DNN 7.4+, and this may be a more general fix than duplicate language/culture settings, but not sure.  Sebastian Leupold offered a duplicate PortalSettings interim quick fix found here: http://dnnscript.codeplex.com/release...

We ran the 7.3.2 script anyway, but it didn't fix our problem.  I didn't want to upgraded to DNN 7.4.2 until I checked with you regarding your experience with a similar problem.  Are there other tables I should check for duplicate entries?

What insights do you have regarding this issue?

Thanks,

 
New Post
5/1/2016 6:18 AM
 
GetGlobalSettingsDB is a PackFlash method, which, most likely, calls a custom procedure of the module. You need to check the database for the Packflash tables and its procedures to get, which table it is referring to and check it for duplicate entries.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...An item with the same key has already been added. Third party (PackFlash)? DNN? or both?An item with the same key has already been added. Third party (PackFlash)? DNN? or both?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out