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
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?
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
I created new subsite with default template , enable publishing feature and try to import but still the same.
ErrorLog file generated:
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 2 -Path C:\back ...
+ CategoryInfo : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPWeb], SPException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
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
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