Products

Solutions

Resources

Partners

Community

About

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...Administration ...Administration ...Create new Portal using Exported Template Fails with ErrorCreate new Portal using Exported Template Fails with Error
Previous
 
Next
New Post
3/9/2010 6:21 AM
 

I had a problem with a duplicate tab and we have a 30K+ line template file which I didn't really want to look through so I wrote a quick, dirty, little Perl script to find duplicate tabs. There are probably better ways of doing this, but it's 3AM and this was my first thought.  Change "exportedtemplate.template" to your template's filename. After you find the problem, just search the template file for "<name>TABNAME</name>" to find the duplicates and you should be able to remove it manually or comment it out with <!-- -->

#!/usr/bin/perl

use XML::XPath;
use XML::XPath::XMLParser;

my $xp = XML::XPath->new(filename => 'exportedtemplate.template');

my $nodeset = $xp->find('/portal/tabs/tab'); # find all paragraphs

%tabs = ();

foreach my $node ($nodeset->get_nodelist) {
$name = $node->find('name')->string_value;
$parent = $node->find('parent')->string_value;

if($tabs{"$name $parent"}){
    print "DUPLICATE: TABNAME=$name PARENT=$parent\n";
}

$tabs{"$name $parent"} = 1;
}

 
New Post
6/10/2010 3:28 PM
 
I am also having this issue. Did anyone figure this out? 

All my portal templates have content. 

I've also tried removing duplicate tabs from the .template file, but it still throws the error:

Error parsing Portal TemplateTab Exists at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo objTab, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabController.AddTab(TabInfo objTab, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabController.DeserializeTab(XmlNode nodeTab, TabInfo objTab, Hashtable hTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable hModules) at DotNetNuke.Entities.Portals.PortalController.ParseTab(XmlNode nodeTab, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable& hModules, Hashtable& hTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.ParseTabs(XmlNode nodeTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32 PortalId, String TemplatePath, String TemplateFile, Int32 AdministratorId, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String PortalName, UserInfo objAdminUser, String Description, String KeyWords, String TemplatePath, String TemplateFile, String HomeDirectory, String PortalAlias, String ServerPath, String ChildPath, Boolean IsChildPortal)

 
New Post
6/24/2010 5:57 PM
 
David Yang wrote:
I am also having this issue. Did anyone figure this out? 

All my portal templates have content. 

I've also tried removing duplicate tabs from the .template file, but it still throws the error:

Error parsing Portal TemplateTab Exists at DotNetNuke.Entities.Tabs.TabController.AddTabInternal(TabInfo objTab, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabController.AddTab(TabInfo objTab, Boolean includeAllTabsModules) at DotNetNuke.Entities.Tabs.TabController.DeserializeTab(XmlNode nodeTab, TabInfo objTab, Hashtable hTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable hModules) at DotNetNuke.Entities.Portals.PortalController.ParseTab(XmlNode nodeTab, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Hashtable& hModules, Hashtable& hTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.ParseTabs(XmlNode nodeTabs, Int32 PortalId, Boolean IsAdminTemplate, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32 PortalId, String TemplatePath, String TemplateFile, Int32 AdministratorId, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String PortalName, UserInfo objAdminUser, String Description, String KeyWords, String TemplatePath, String TemplateFile, String HomeDirectory, String PortalAlias, String ServerPath, String ChildPath, Boolean IsChildPortal)

Issue Resolved for me

I tried upgrading from 5.2.3 to 5.4.0 and it did not resolve the issue. Finally, I decided to rebuild the DotNetNuke Library source to add more information than "Tab exists". Specifically, I added - Throw New TabExistsException(iTabID, "Tab Exists" + "[iTabID:" + iTabID.ToString() + "], [TabPath:" + objTab.TabPath + "]") in TabController.vb line 90.

This will tell you exactly what is wrong with your template file (i.e. which tab it won't accept). Open your template file with a XML editor and you should be able to just remove the TAB node that is not playing well with your template.

Hopes this helps anyone else with the same issue.

 
New Post
11/25/2010 12:42 AM
 
I had the same issue and there were no duplicates in my template. My problem came from exporting the template. My portal version number was incorrect for some reason, it was being exported as portal version="1.0".

Since I was exporting a version 5+ portal template, the export includes the admin tabs, I'm guessing the admin tabs aren't included in the template prior to version 5. So since my portal version didn't equal 5.0 (even if you're using 5.5 for instance it has to equal 5.0 exactly), the import template process was adding the admin tabs even though they were already included in the template. So my template didn't include duplicate tabs but during import DNN was adding duplicates.

To fix this I simply had to change the portal version (the first tag in the XML) to 5.0 and all worked.
 
New Post
12/24/2010 8:33 AM
 
Greetings, I got this problem resolved. I think there is no bug in DNN. By going to Admin------Pages, I verified the name of the tabs that could cause problems. I found similar tab names given under same parent page and that created problems. Alternatively, you might also check TabName in db.Tabs table for duplicate tab name under same parent. And this solved my problem. Hope, this helps all of you. Cheers, Ranjit J. Vaity +91 9769699334
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Create new Portal using Exported Template Fails with ErrorCreate new Portal using Exported Template Fails with Error


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