none
Export/Import site lists,library sharpoint 2013

    Question

  • hi,

    I have two two web application on one sharepoint server 2013 (one farm) . First web application (compani.my.co) is pruduction and contains a subsites with a lot library, list, calendar , .... . On second web application I trying to import   library from production site .

    I am using :

    Export-SPWeb http://company.my.co/dok -Path C:\backup\test.cmp 

    Import-SPWeb http://Newcompany.my.co/dok/ -Path C:\backup\test.cmp 

    error: 

    Import-SPWeb : Cannot import site. The exported site is based on the template STS#1 but the destination site is based on the template CMSPUBLISHING#0. You can
    import sites only into sites that are based on same template as the exported site.

    The problem is about mismatch site template. How can I resolve this problem?

    Saturday, July 12, 2014 5:17 PM

All replies

  • Hi

    I think we cannot export/import data have different site template . Once the team site(STS) is created, then enable the publishing feature. After you enable the feature then copy over the content by running the import and check it resolves the issue

    Thanks


    Girish

    Saturday, July 12, 2014 6:30 PM
  • hi, 

    I created new subsite with default template , enable publishing feature and try to import but still the same. 

    Error 

    Log file generated:
            C:\backup\test.cmp.import.log

    Import-SPWeb : Cannot import site. The exported site is based on the template STS#1 but the destination site is based on the template STS#0. You can import
    sites only into sites that are based on same template as the exported site.
    At line:1 char:1
    + Import-SPWeb http://Newcompany.my.co/dok2 -Path C:\back ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
    Saturday, July 12, 2014 7:09 PM
  • I create a subsite , withe blank template and import was successful.

    But now I can't opet subsite ... 

    I see files using Site Content and Structure , and from there I can opet Site setings , but can't opet any option. 



    • Edited by zorzinjo Sunday, July 13, 2014 9:48 AM
    Sunday, July 13, 2014 8:19 AM
  • can you share what is the error you are facing when you try to open the subsite?

    try opening the page in edit mode http://spj.com/default.aspx?contents=1, if you have any webparts, just close them try to browse the site again and see if you are able to open the site now.


    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

    Monday, July 14, 2014 4:13 AM