Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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...Language and In...Language and In...Localized Pages have become pages of site default languageLocalized Pages have become pages of site default language
Previous
 
Next
New Post
7/29/2011 4:25 AM
 
Paul, I am glad, you were able to figure it out and solve your problem. we might need to create some fixing sql statements for cases like this, if there are still issues in latest version.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/29/2011 6:12 AM
 
Today we had the same 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 System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) at DotNetNuke.Entities.Modules.ModuleInfo.get_LocalizedModules()


This SQL helped us to find TabModules causing that error:

SELECT dbo.Tabs.TabID, dbo.Tabs.TabName, dbo.Tabs.TabPath, DuplicateTabModules.CultureCode, TabModules_1.ModuleID, TabModules_1.IsDeleted,
DuplicateTabModules.Count, dbo.ModuleDefinitions.FriendlyName, TabModules_1.PaneName, dbo.Modules.AllTabs, TabModules_1.ModuleTitle,
TabModules_DefaultLanguage.ModuleTitle AS [Module Title (Default Language)], TabModules_DefaultLanguage.TabID AS [TabID (Default Language)],
Tabs_DefaultLanguage.TabName AS [TabName (Default Language)], Tabs_DefaultLanguage.TabPath AS [TabPath (Default Language)],
DuplicateTabModules.DefaultLanguageGuid, dbo.Tabs.PortalID
FROM (SELECT CultureCode, DefaultLanguageGuid, COUNT(*) AS Count
FROM dbo.TabModules
GROUP BY CultureCode, DefaultLanguageGuid
HAVING (COUNT(*) > 1) AND (DefaultLanguageGuid IS NOT NULL)) AS DuplicateTabModules INNER JOIN
dbo.TabModules AS TabModules_1 ON DuplicateTabModules.DefaultLanguageGuid = TabModules_1.DefaultLanguageGuid AND
DuplicateTabModules.CultureCode = TabModules_1.CultureCode INNER JOIN
dbo.Tabs ON TabModules_1.TabID = dbo.Tabs.TabID INNER JOIN
dbo.Modules ON TabModules_1.ModuleID = dbo.Modules.ModuleID INNER JOIN
dbo.ModuleDefinitions ON dbo.Modules.ModuleDefID = dbo.ModuleDefinitions.ModuleDefID INNER JOIN
dbo.TabModules AS TabModules_DefaultLanguage ON TabModules_1.DefaultLanguageGuid = TabModules_DefaultLanguage.UniqueId INNER JOIN
dbo.Tabs AS Tabs_DefaultLanguage ON TabModules_DefaultLanguage.TabID = Tabs_DefaultLanguage.TabID
 
New Post
9/29/2011 6:10 PM
 
this looks like a missing unique key constraint, obviously the database part of content localization still has room for improvements.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/11/2011 8:02 AM
 
Same problem here, we have a website with 4 languages. When I try to add a page I get the same error and the page is only added in 2 languages.

Used the SQL select query above as result I get the banner module which is placed on all pages (Display module on all pages). Looks like the problem is related to modules that are copied or displayed on all pages. Deleting this module and cleaning the recycle bin solved the problem for now, but we really hope there wil be a fix for this localization bug!!!!
 
New Post
11/9/2011 6:27 PM
 
Hi,

I am getting the same error,  when i tried to enable localization on our portal.   It translated about 20% of the pages and then errored out. 

I ran your query, on my portal and a lot of pages. 

I am not sure what does it mean and where do I go from here to enable localization on my portal.

Sebastian /anyone out there, please suggest.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...Localized Pages have become pages of site default languageLocalized Pages have become pages of site default language


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out