Requested value 'PublishingPages' was not found.

I want to migrate a publishing site from my QA server to my production server use management shell.

Source server:

http://myqa/workorders  The site collection template is the team site template and the subsite template is the publishing template (CMSPUBLISHING 39).

Target server:

http://myproduction/workorders The site collection template is the team site template and the subiste template is the publishing template (CMSPUBLISHING 39).

(1) I got the error "Import-SPWeb : Requested value 'PublishingPages' was not found when I tried to import the site to the production server. I have compared the two servers and seems both site collections and sites have the same features enable.

(2) I also got a server error (without much details) when I tried to created a publishing site in both servers (I do not remember I had such error when I created the site in the QA server in the past). My question is can I create a publishing site in the site collection that has the team site template.

Many thanks for you advise.

 

 
June 29th, 2015 1:51pm

Hi,

As your description, I did a test as:
1.In my first SharePoint environment, create a publishing subsite under an existing site collection with team template and publishing feature enabled at site collection level.
2.Use the command "Export-SPWeb http://sp/sites/team/publishingA -Path C:\publishingA.cmp" to export the subsite.
3.Copy the .cmp file and .cmp.export.log file to the second SharePoint server(C:\).
4.Create a team site collection in the second SharePoint environment, then enable SharePoint Server Publishing Infrastructure feature at site collection level.
5.Run the command "Import-SPWeb http://sp/sites/Wendy/PublishingB -Path C:\publishingA.cmp" to import the subsite.
6.Everything went well.

Please test as the above steps, compare the result.

In addition, you mentioned that you got an error when you created a publishing site in both server, please open the ULS log file to check more information about this error. The path of the log file is: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.

Thanks,
Wendy

Free Windows Admin Tool Kit Click here and download it now
June 30th, 2015 2:46am

Thanks Wendy.

I always created a site with the same template, then use Import-SPWeb command with Overwrite option to import the cmp data. Can I import the cmp data WITHOUT create the sub-site first?

I also have another though about my issue. The source server higher build number than the target server. Can this be a problem?


  • Edited by eg10013 17 hours 19 minutes ago
June 30th, 2015 9:25am

Thanks Wendy.

I always created a site with the same template, then use Import-SPWeb command with Overwrite option to import the cmp data. Can I import the cmp data WITHOUT create the sub-site first?

I also have another though about my issue. The source server higher build number than the target server. Can this be a problem?


  • Edited by eg10013 17 hours 11 minutes ago
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2015 9:26am

Hi,

Before you import the cmp data, you need to create a subsite using the same template with the cmp data firstly.

Per my knowledge, in SharePoint 2013, if you want to copy the site across farms, you need to make sure the source farm and target farm have same build number. So, for your environment, I suggest you upgrate the target farm to the same builder number with the source farm, then import the site again.

Thanks,

Wendy

July 1st, 2015 3:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics