.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
satyapriyanayak
Post New Web Links

Duplicate field name error, creating new site from custom template

Posted By:      Posted Date: September 17, 2010    Points: 0   Category :SharePoint
 
I've made a site that maps the site (with a table of contents) and i export it to another site collection. I'm able to install and activate the solution in the other site collection, however when i'm going to create a new site using the site i've installed as a template it pops an error saying "A duplicate field name Wiki_x0020_Page_x0020_CategoriesTaxHTField" was found." I have no clue what this means. Can anyone help me? Thanks in advance


View Complete Post


More Related Resource Links

Error when creating a custom site template

  

Hi

In VS 2010, I created a new SP project to create a custom site template.

W/O modifying the content, except setting the output path of the webtemp file to another language, I have the following error when I try to create a site based on this template :

 

failed to instantiate file "default.master" from module "defaultmasterpage": source path "default.master" not found

 

I've taken a look at OOB site templates, and I don't see what is missing.

I'd appreciate any help.

 

Steve

 

FYI, here is the content of my onet.xml  file :

 

<?
xml
 version
=
"
1.0
"
 encoding
=
"
utf-8
"
?>

<
Project
 Title
=

"Duplicate content type name" error when trying to create a site from a custom site template

  

I am getting "A duplication content type name 'Approval' was found" error, when I try to create a new site based on a custom template.  These are the steps that result in the error:

  1. Create a new blank site.
  2. Without making any changes, save the blank site as a site template called "test".
  3. Try to create a new site based on the "test" template.
  4. Get the above error.

I did notice that when I tried creating site from the template in a different area of my site collection, the error name changed from "Approval" to "Requestor". 

As it stands I cannot use custom templates in my site collection.  Any advice on how to overcome this error?

Eric


Creating a new site sharepoint 2010 under parent site with my custom template Programatically using

  
Hi, I have a parent website under which i want to create subsites on the fly using visual studio 2010. The subsites which i want to create have a common stuructre(in temrs of lists & custom). So i saved the template in sharepoint 2010,it becomes wsp and goes into soution gallery. Now how do i use this template say mytemplate.wsp,to create site in visual studio. i tried this using (SPSite site = new SPSite ("http://infml01132:5566/sites/VRND " ))             {                 using (SPWeb web = site.OpenWeb())                 {                                       SPWebTemplateCollection myTemplates = site.GetCustomWebTemplates(Convert .ToUInt32(web.Locale.LCID));                     //SPWebTemplateCollection temlates1 = site.GetCustomWebTemplates(1033);                     //SPWebTemplateCollectio

Creating a dynamic site using custom template programmatically.

  

Hi,

I have sites like

http://kashyap

http://kashyap/Team

http://kashyap/Team/Project1

I have created Project1 as Template (Save as Template) and this template is available at http://kashyap Site Gallery > Solutions

http://kashyap/Team has a list called projects. I want to do custom workflow which is run by user manually(It is not problem). I want to create site programmatically  based on the template. I did some code Its

 private void codeCreateSite_ExecuteCode(object sender, EventArgs e)
    {
      SPWeb web = workflowProperties.Web;


      SPListItem lst = workflowProperties.Item;
      string title = lst["Project Title"].ToString();
      string url = Common.UrlString(title);
      string desc = "Project from " + Common.GetFormatedValue(Convert.ToString(lst["Customer"

Creating a Site Column that Looks up an External List causes error when saving site as a template.

  

I'm not sure what the best practice is here, but I'm having a major issue trying to save sites as templates and I think I narrowed it down as to what the issue is.

When I try to save a site as a template, it creates the solution package, but it doesn't activate it.  When I try to activate it manually, I get the following error:

Feature definition with Id e9431ed5-27b1-4c33-9eeb-81b4ace9d372 failed validation, file 'test1ListInstances\ElementsFields.xml', line 481, character 231: The 'SystemInstance' attribute is not allowed.

I opened up the solution package and looked at the ElementsFields.xml file.  I traced the line to this:

<Field Type="BusinessData" DisplayName="Acme People Name" Required="FALSE" EnforceUniqueValues="FALSE" Group="Custom Columns" ID="{55b3bbba-a7e3-4698-9946-648a6b726e9e}" SourceID="{026904fd-f2d0-4e57-a239-c6da838458fa}" StaticName="Acme_x0020_People_x0020_Name" Name="Acme_x0020_People_x0020_Name" SystemInstance="ACME" EntityNamespace="http://????????:28241" EntityName="People" BdcField="FullName" Profile="" HasActions="True" SecondaryFieldBdcNames="0" RelatedF

Creating custom site template from a site that has a subsite - issue

  
  1. We created a Report Center site (a subsite) inside our site and then saved the site as a custom site template (including content). When we create the site out of this template, the site does not include the Report Center subsite. Can someone explain why?
  2. The report center was created for Key Performance Indicators (KPI) and we had published those KPIs on the parent site. We were hoping the any site created with our custom site template would show the KPIs. But we see only the KPI web part on the new site (created from our custom site template) without any KPI data. The reason is obvious because the data was coming from the Report Center subsite that does not get created by our custom site template. How do we accomplish this task via a custom site template?
    Thanks......

Error creating site template from wsp

  

hi,

I am installing myCustomSiteTemplate.wsp, on SP 2010 server, activating the solution , my customized template is listed under site templates.

however when I am creating a new site using that template , it is throwing error as

Thie site Template requires that the Feature {909ada82-494c-41a2-9c10-630f1588c9c2} be installed in the farm or site collection.

I checked on Sharepoint Power Sheel console, with the following command

get-spfeature 909ada82-494c-41a2-9c10-630f1588c9c2. it does not show any feature .

I have activated all Publishing feature on site collection.

please help


404 Page Not Found Error When Trying to Create a Site From a Custom Site Template

  

I just moved a site collection from a one server to another, and now I can't make copies of my sites using custom site templates.

The details of my site structure are in the next paragraph, in case they are relevant.
On the original server, I created custom templates for my sites, and checked the Include Content checkbox
when creating the templates. Everything works perfectly on that server. When I moved the whole site collection to another
server using stsadm backup/restore everything was there, including my customized web parts. But now I can't create new sites
from templates - and I'm I'm not trying to use templates created on the original server. I'm creating new templates on the new
server. It successfully creates the templates, but when I try to create a new site from one of those templates, I get a
"HTTP 404 Page Not Found" page. It succeeds in creating the new site, and the new site shows up in my navigation bar,
but when I click on the new site, I get a "404 Page Not Found" page.

*********Details*************
On the original server, I created one top level site for my whole department. Under that, I have one subsite for each of our
external clients. Under each of those, I have one subsite for each project for that client. I used a Team site as my starting
point at each of the 3 leve

Backup/Restore 404 File not found error ;Site site created besed on Custom Site Template

  

Hi,

 

I am using SharePoint (Version: 12.0.6318.5000). The scenario is like that;

  • I have created a Site Collection and under that I have 2 sub sites and under each sub sites again I have a sub site (Site Collection [level 1]>>>SubSite+Lists [level 2]>>>SubSite+ Lists [level 3]>>>Lists, Doc. Library and Picture Library

Error creating site template for publishing site

  

Hi,

I am trying to create site template for publishing site in SharePoint 2010.

I have a publishing site and have created site template for the same using _layouts/savetmpl.aspx.

But when I tried to create site from that template in the same site collection it throws error, actually it creates the site but not able to set the home page as /pages/default.aspx. If I edit the url as http://<new site created>/pages/default.aspx the site is working fine.

The onet.aml for the site template is: 

 

<Project Title="AsTestPckSiteTemplate" Revision="0" UIVersion="4" SiteLogoUrl="" SiteLogoDescription="" xmlns="http://schemas.microsoft.com/sharepoint/">

<NavBars>

<!--<NavBar Name="SharePoint Top Navbar" Url="/poc/infonet/Depts/AsTestNewSite" ID="1002" />-->

    <NavBar Name="SharePoint Top Navbar" ID="1002" />

</NavBars>

<Configurations>

<Configuration ID="2" Name="BLANKINTERNET" MasterUrl="_catalogs/masterpage/nightandday.master" ThemedCssFolderUrl="/poc/infonet/_catalogs/theme/Themed/6941FBA2">

<SiteFeatures>

<!--PublishingPrerequisites Feature-->


Creating a custom column with a link to document (other than the name field) in document library

  

Hello!

I have a document library with the standard name column linking to the document. However, we'd like to create a custom field and have that link to the document (and edit item menu).

How is this best accomplished?

Thanks in advance!

T


Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverlight 3

  
Learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Video: Creating Custom SharePoint 2010 Field Types and Controls with Visual Studio 2010 and Silverli

  
Watch the video that accompanies the MSDN article and learn how developers can create rich experiences in SharePoint Server 2010 publishing sites using Microsoft Silverlight 3.

Creating a custom drop down field type with SelectedIndexChanged Event

  
Hi All, I am trying to create a custom drop down field type and I was able to acheive that using the MS link http://msdn.microsoft.com/en-us/library/bb861799.aspx. As per the link, once the custom field is created we can override the "Validate" method to write the Validation logic and that works fine for me too. However I am facing a challenge even before going to Validate . Let me explain my actual requirements here. I need to build a custom drop down field and expose the field to the user in "Edit Properties " Page of a document library. Along with this field, I will be having some OOB site columns in the Edit Properties Page (Ex: Title, Subject etc)  . When user selects a value in the drop down, I need to hide/show few OOB site columns based on certain criteria.  I am facing a challenge of how to capture the "SelectedIndexChanged " event for the Custom drop down field in Sharepoint (Can we wire the SelectedIndexChanged event to a custom dropdown field type) ? Is this acheivable in SP 2010 Custom field type ? If so, how can I do it ? Can any of you kindly help me here?   Regards, Yesh
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend