Save site as template with lookup columns

Hi,
I created site template from my subsite where I use custom list with lookup columns and parent child list relationship, but If i create new subsite with the custom site template I get more errors:
System.IO.FileNotFoundException: <nativehr>0x80070002</nativehr><nativestack></nativestack>, StackTrace:   
 at Microsoft.SharePoint.SPWeb.GetList(String strUrl)    
 at Microsoft.SharePoint.SPListInstanceElement.EnsureListExists(SPWeb web, Boolean bCreateFromSTP, Boolean bUserFeature)    
Failed to instantiate list 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\Template\Features\HierarchyTasksList\hierarchy'
Application error when access /_layouts/15/newsbweb.aspx, Error=<nativehr>0x8107058a</nativehr><nativestack></nativestack>Unable to perform the operation. Please try again.  
 at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate,
Int32& plWebTemplateId)    
 at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32&
plWebTemplateId)
Unknown SPRequest error occurred. More information: 0x80070002
Can anyone help me, how can I create subsite what I can use more times?
Thanks,
Mykie

Hi Tailorworld
please try the power shell script because you are facing problumn with default content type feature
Run the SharePoint 2010 Management Shell as Administrator.  
Run the following command to disable the default content type feature:
Disable-SPFeature –Identity ctypes –url http://SiteCollection
Then enable the content type feature:
Enable-SPFeature –Identity ctypes –url http://SiteCollection
If you look at your content types, they should now all be there.  Try saving the subsite as a template again, it should succeed.
--------OR----
You can try Check the link
http://sharepoint.stackexchange.com/questions/32076/unhandled-exception-when-saving-a-site-as-a-template
https://support.office.com/en-ie/article/Save-a-SharePoint-site-as-a-template-5a4eb024-d1fa-4681-a4ac-e6bd1e3209ba
Please mark the Answer and Vote me if you think that it will help you to resolved your issue

Similar Messages

  • Move sharepoint 2010 list to 2013 with lookup columns

    Hi all,
    Iam planning to move my sharepoint 2010 list to 2013.I done this using save site as template.But the look up columns are showing empty data.Can u please let me know the best solution to do this.
    Regards,
    Praveen

    The reason the lookup column doesn’t work anymore in your SharePoint 2013 list is because Save
    Site as Template, preserve all the list settings. Therefore, the lookup column still points to the original list which
    was located on your SharePoint 2010 list. The lookup column stores GUID of the web, list, and the field to which it points
    and GUID are unique IDs that identifies a list/library/site/feature in a farm.
    Using SharePoint Manager you can find the LookupList, LookupWebId and LookupField of
    your old SharePoint 2010 lookup column and compare it with your new 2013 lookup column. You will see the difference.
    There are two approach to get your values in lookup again.
    1(a). Create a new list and update the lookup values.
    1(b). Delete the lookup column and create a new lookup column and point it to the new list created in the above point.
    2. Update the SchemaXml property
    of the lookup column through SharePoint Manager.
    I will provide you with a good reference on how to use SharePoint Manager while managing your lookup columns. http://blog.johnsworkshop.net/moving-lists-with-lookup-columns-inside-your-site-collection/
    Please remember to click 'Mark as Answer' and Vote as Helpful if the reply answers your query.

  • How to Save site as template in SharePoint 2010

    hello,
    I am little bit confused about how I can save a site as a template in moss 2010!
    In SharePoint 2007 it was simple > site actions > save site as template... and done!
    but I do not find how to make that in the new SharePoint, I would be really happy if someone could tell me how to do that.
    I found some tutorial:
    To create a Site Template, browse to the Site you want to create from.  Go to Site Actions –> Site Settings –> Save site as template (under the Site Actions heading).  Give your template a name, and don't forget to check the "Include Content" box if you want to include library and list content in the template.  This will create a new site template in your Solutions Gallery, which you can then use when creating new sites.  You can also download directly from the Solutions Gallery to a .WSP file.
    but the thing is, I do not have the "save site as template" link! I also checked if I need some special site feature activated, but I have all activated.
    thank you in advance

    I imagine you are trying to save a publishing site as a template, correct? If so, the save as site template link is not available for publishing sites. This was not supported in MOSS and I imagine isn't in SharePoint 2010. The reason was due to publishing sites having pages and layouts tied to content types that do not move with the template.
    If you would like a work around, you can disable the publishing feature (which will then make the save as site template link visible), save the site as a template, then re-enable the publishing feature. You would have to re-enable the publishing feature on each new site built from this template, if desired.
    Go to Site Actions > Site Settings > Manage site features under Site Actions. Deactive the SharePoint Server Publishing feature, then go back to the Site Settings page. You should now see the save as site template link. After you save the template, turn back on SharePoint Server Publishing.
    Adam Preston - MCTS | Blog: http://sptwentyten.wordpress.com | Twitter:@_apreston

  • Error when using ANY "save site as template Include Content" solution to create a NEW Site Collection

    Here is the scenario. (SharePoint 2013)
    In Dev/Test/Prod any Site that we Save as Template and include content and then, Download and try to use in a new Site Collection errors out upon use "List does not exist" error.
    This occurs with ANY Site, even OOB Team Site template that is immediately "Saved as Template".
    We can do this in any other environment (we have several test labs 1 in O365 and 1 in VM that is very OOB)
    We can take the site solution from the environments we're having the issue in and use them successfully in our Lab environments (on prem or in the cloud).
    We have also tried taking Site solution from lab environment (where we know it works fine) and tried to use these in Dev/Test/Prod and they also error on us.
    In the Dev/Test/Prod environments that have the issue if we DO NOT include content, the template works just fine to create a new site collection with the template.
    Keep in mind we're talking about environment with no 3rd party apps, no custom code, just 2013 SharePoint with all patches and CU up to June 2013, AND this is ANY template even a vanilla OOB template without anything in it.
    You can always save site as template including content, download/upload it to new site collection solutions gallery and activate it without any issue... it's only if you try to use these templates to create a site that the error occurs.
    Any thoughts on this?
    J

    I also experiencing the same issue. I also tried to create a new site-collection using publishing site template, resulting in "list not found" error.
    Later I tried just a team-site (with content) -> the same error.
    The error appears on two different (post SP1) farms. That's why I tested the site-collection creation on an old (pre SP1) farm: the error doesn't exist. Site-Collections are created properly.
    My conclusion is: either SharePoint SP1 or a later CU causing the error.
    Regards,
    Valerian

  • I have no "Save Site as Template" in my Sharepoint site settings

    Hallo!
    I have Sharepoint 2007 installation. Want to make site template. All RTFM I found contains reference to "Save Site as Template" operation, which must be at site settings, at "Look and Feel".
    But I cannot find it there!!! I have no such a menu in list settings, and site collection settings too.
    And I have no idea how I can workaround it.
    Please, help me with solution, or some advise. Maybe, there is some other, command-line method to do it...

    Hi Jamil,
    please visit this link it will help you.
    http://blogs.msdn.com/b/richin/archive/2011/12/05/save-site-as-template-option-missing-in-sharepoint-2010.aspx
    http://neelb.wordpress.com/2010/10/28/save-site-as-template-in-sharepoint-2010-missing/
    Thakns
    Pushps

  • How to take list backup with lookup columns data in sharepoint 2010

    Hi friends,
    I have one issue on "Copy the list in one sitecollection to another sitecollection"
    I have one list like "ABC" and with lookup column "Status" this column is looked to anthor list columns
    My task is i want to Copy the same list with lookup columns with Data(lookup columns Data) in one site and restored in another site.
    Error  is Lookup columns Data is not coming.
    How to Copied list with lookup columns data to restored in another list?
    Badri

    i think there is no such method to move the list with lookup column. 
    couple of things which cause the failure, Number Source list may be not available on the target site collection, Column IDs / List IDs different from Site collection a to B.
    I would try to use the backup of site collection and restore it, i am not sure whether it will work not.
    i think copy the data from the lookup clomn in the excel, then move the list to different site collection with blank data then copy the data from excel to new list.
    check this one for another idea:
    http://blog.johnsworkshop.net/moving-lists-with-lookup-columns-inside-your-site-collection/
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Missing "Save Site as Template" For Publishing Sites in Project online 2013

    First I created Sub site using Project Template under the site collection.
    Now I want to this Sub site Save as a Site Template. When I went for Save site as Template in site setting. Under Site Action there is no option for “Save site as Template”
    marylu

    "Publishing Feature" may be enabled at your site , The Publishing feature does not support the Save Site as Template option.
    http://support.microsoft.com/kb/2492356
    Some workaround -
    http://www.learningsharepoint.com/2013/05/03/missing-save-site-as-template-for-publishing-sites-in-sharepoint-2013/
    http://blogs.msdn.com/b/how24/archive/2013/06/13/save-publishing-site-as-a-template.aspx
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • 'save site as template' missing SP2013

    Hello!
    I would like to save my webpart page as a template. The problem is that i don't see "save site as template" anywhere on this site. On another site i've created the "save site as template" is visible.
    What could be the problem? I think i activated the necessary features. 
    Thanks. 

    Hi,
    Open the site in SharePoint Designer, in the home page, Click on “Site Options”, you will get prompt, In the “Parameters”
     Tab, you can find “SaveSiteAsTempalteEnabled”, set it to true.
    For more information, see
    http://microsoftechies.wordpress.com/2013/01/08/sharepoint-2013-save-site-as-template-missing/
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Site lookup columns that contain a list with lookup columns help needed

    Here is the theoretical scenario,
    I have a list called Shirts. The list contains name,color, and size columns.
    I have a list called Pants This list contains name, color and size columns as well.
    These two lists are contained at the root level of the site. I created site lookup columns for these two lists and used the name, color and size columns as additional fields on both lookup columns. Lets call these lkupPants and lkupShirts.
    On a sub site I have a list called people. It contains name,date,lkupPants and lkupShirts columns.
    The list looks something like this is dataview:
    Name Date lkupPantsName lkupPantsColor lkupPantsSize lkupShirtName lkupShirtColor lkupShirtSize
    This is the behavior I expected. The additional columns selected in the site lookup columns appear in the list.
    I now create another site lookup column this one is based on the list called people at this subsite level. When creating the site lookup column, the data from lkupPants and lkupShirts are not available.
    How can one create a lookup column that contains list data and any lookup columns contained in the list as additional fields.
    If anyone can see where I am going with this, can they provide another means to accomplish what I am trying to do?
    fr0stsp1re

    create additional columns in people list.  look up values are available in the workflow so populate the additional columns with the values you need.  this will allow you to create another look up column based on this list and all the fields needed.
     just a thought.
    kashif

  • Cannot save site as template (An Unknown Error Has Occurred) even with the correct permissions/settings?

    Hi everyone,
    We're currently experiencing some issues saving a site as an template.
    This is the error we get in the event viewer:
    Exception information: 
        Exception type: InvalidOperationException 
        Exception message: Error saving solution to temporary file
       at Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution()
       at Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl, Action`1
    solutionPostProcessor, Boolean activateSolution)
       at Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    I've looked everywhere for this error and all the sites point to a permission issue; I've check that already: it isn't. We've tried creating this template via PowerShell, C# command line application, SharePoint Designer and the savetmpl.aspx page at the
    site itself: no result; Yes, it is a publishing site, but that didn't stop us. We've created a site template from a different site and the publishing feature was also enabled there.
    Later this site really helped me into digging deeper into the logs: http://www.sharepointblogs.be/blogs/vandest/archive/2014/05/23/sharepoint-how-to-troubleshoot-issues-with-save-as-template.aspx
    The annoying part is: the folder that is being created by the web application pool user when saving the site as a template is totally empty!
    How can this be? Did I miss something? Could someone help me with this issue?
    Thanks in advanced!
    With kind regards,
    M. Hekman

    Hi  ,
    According to your description, my understanding is that you encountered the error “Error saving solution to temporary file”  when you tried to save a publishing site as a template.
    For your issue, please make sure you have set the SaveSiteAsTemplateEnabled property of your publishing site to true. You can refer to the PowerShell script as below:
    # Get a reference to the target site
    $web = Get-SPWeb http://Intranet.SWRanger.com/Publishing
    # Update the property bage value and set it to the string value "true"
    $web.AllProperties["SaveSiteAsTemplateEnabled"] = "true"
    # Commit the property change to server
    $web.Update()
    Reference:
    http://blogs.msdn.com/b/how24/archive/2013/06/13/save-publishing-site-as-a-template.aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to save site template with subsites..?

    Hi,
    I am trying to save site as template., and found that subsites are not part of that site template..
    Can anybody tell me how can I save site as template with subsites.?...
    Thanks,
    Parag

    As Paul said you can only save a single site at a time.  I'm not sure specifically what you are trying to do, but it wouldn't be terribly difficult to write some code which provisions a site with specific subsites.  I've seen this type of scenario
    handled many times via both manual and automated processes.  It all just depends on the requirements.John Ross
    SharePoint Server MVP | Sr. Consultant SharePoint911:
    SharePoint Consulting
    Blog: http://www.sharepoint911.com/blogs/john
    Twitter: @JohnRossJr
    Professional SharePoint 2010 Branding and User Interface Design

  • Issue with site template that contains a document library with a lookup column to another list

    I have a document library called Proposals with a lookup column in the same site called Document Categories (multiple values allowed).  It points to a list called document categories.  I have several sample documents in the Proposal Library that
    contain valid document categories.  When I save the site as a template and instantiate it, everything is fine.  However, when I remove the sample documents from the Proposal library and rebuild the site template, I can't get the  template to
    create another site.  I get an error Unable To Open Lookup List.
    I don't understand why I can instantiate a site from the template when there's sample data, but not when the document library containing the lookup column is empty.
    Does SharePoint 2010 site template support lookup columns?
    Why would it make a difference if the library is empty?
    Thanks

    Hi,
    According to your description, my understanding is that the error occurred when you created a site from the template with no files in the document library.
    I tested the same scenario per your post, and I can create a site from the template with no files in the document library with no errors.
    To solve this issue, I recommend to verify the things below:
    Did you save the site as a template with Include Content checked? If yes, I recommend to test if it works when saving the site as a template with Include Content unchecked.
    Test the same scenario with a new site to narrow the issue scope.
    I also recommend to check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    You can check the ULS log by the methods here:
    http://blogs.msdn.com/b/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx
    http://msdn.microsoft.com/en-us/library/gg193966(v=office.14).aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Given the the user the right to save site template

    Hello,
    how can i give a user the right so save a site as site template. Being in the "Site Owners" group didn#t seem to be enough to do that.
    Like written in the manual: https://support2.microsoft.com/kb/2420856?wa=wsignin1.0
    the menu entry "Save site as template" just don't exist for all "Site Owners" users.
    Thank you.

    Hi Mafrei,
    Thanks for posting your query, Saving a site as a template creates a Site Template.
    Creating a web template in Visual Studio using the new WebTemplate feature creates a Web Template.
    When the Publishing features (web or site collection scoped) are activated it is not supported to save your site as a template. If you do want to save your site as a template using the SharePoint user interface you should not activate the publishing features.
    If you do need to activate the publishing features you should create web templates using Visual Studio instead of saving your site as a template through the user interface.
    I hope this is helpful to you. If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog: http://sharepoint-community.net/profile/DharmendraSingh

  • List Views displaying error - when using Lookup column for filtering ( which are indexed )

    I'm trying to filter a large list that has more items than the list view threshold. The list has a lookup column that is indexed. If I  try to filter by other columns, the view works fine as long as it returns fewer than 5,000 items. However, if
    I try to filter by the lookup column, I get the error about not being able to display the items because the list is too large.
    The views are returning items which are less than threshold value , but still I am seeing the same issue.I Created some pages and added this filtered views to the pages it is showing below error
    This view cannot be displayed because it exceeds the list view threshold ....
    IF I navigate the view in the list it's returning zero records with out any error page . But no records. 
    Is there a known issue with filtering large lists by lookup column? Any other troubleshooting suggestions? Everything I'm doing here is through the web interface.

    Thank you for your reply. Yeah it’s default limit. But when I created view based on some filter condition on lookup column it’s not working.
    For example:
    Created a View based on Lookup column DEPT using filter condition Dept = HR , returned 1400 items
    Created another View based on Lookup column DEPT using filter condition Dept=Admin , returned 3600 items
    Adding this list view webparts to the page also working fine , displaying the results .
    After adding one item to this list , both the views are not displaying any results. Now the count is 5001.(it exceeded the list view threshold)
    The page where the list view web parts are added throwing the below error.
    This view cannot be displayed because it exceeds the list view threshold (5000 items) enforced by the administrator.
    To view items, try selecting another view or creating a new view. If you do not have sufficient permissions to create views for this list, ask your administrator to modify
    the view so that it conforms to the list view threshold.
    Learn about
    creating views for large lists.
    I am experiencing this problem only with lookup columns, Choice and site columns are working fine in this same situation .
    Thanks,

  • External Data Lookup Column View

    Hey all,
    I have a list with lookup column that points to an external content source called 'Manufacturer'.
    When I click the picker to choose what Manufacturer Item I want, I only need to see the Manufacturer Column, but the default view is showing ALL of the columns in that database. It's also sorting by the ID - I need it to sort by manufacturer.
    How can I change the view of this picker box?  Is it being rendered by an XML file somewhere?
    Thank you,
    Justin

    Hi,
    As there is no such OOTB feature can meet your requirement, a workaround is that we can customize the Picker.aspx to hide the unwanted column using JavaScript.
    By default, the
    Picker.aspx locates here:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS
    The links below about selecting elements and changing the style of page elements using jQuery for your reference:
    Selecting elements using jQuery
    https://learn.jquery.com/using-jquery-core/selecting-elements/
    Change CSS style of page elements using jQuery
    http://www.w3schools.com/jquery/jquery_css_classes.asp
    http://stackoverflow.com/questions/3730035/how-to-change-css-using-jquery
    Best regards
    Patrick Liang
    TechNet Community Support

Maybe you are looking for

  • Use of WRT54G after Power Surge

    I was very satisfied with my WRT54G v2 until I went on vacation and came back.  While on vacation a power surge or lightning struck and wiped out a bunch of things from my garage door opener to office:  cable modem (no ethernet port), router (no inte

  • Is there any memory leaks in the version 4.6.21?

    Hi All: My en so weak ,so I try my best to let you understand my mean... I add replication to my app rencently. It's seem any memory leaks in the version 4.6.21. Threr is an env in my app's database. and there are 2000 dbs in the env. The 2000 dbs di

  • Use declarative button

    Hello, I have define a declarative button (very simple, without anything in it) and tried to use it in another project. But I got th error: 14:02:18 IDT 26/08/2012> <Error> <HTTP> <BEA-101083> <Connection failure. java.net.ProtocolException: Didn't m

  • Problem Downloading Program

    hi! i am trying to download my adobe photoshop elements 6 on my mac and i am having a hardtime

  • Can't sync new contacts from Outlook to iphone 6.  Turned off all add-ns and still will not update.

    Did the suggestion on the Apple site for contacts.  When I do the sync I can see the new contact in my contact list then it goes away when the sync finishes.