Resolution for Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.

Problem:  When accessing any page in sharepoint site which has publishing site infrastructure feature actiavted. above given error appears.
Resolution:
First try to Deactivate and ReActivate the Sharepoint Site Publishing Infrastructure feature at both Scopes (Site And Web) level.
If this will not solve your problem then try to run following Power shell script.
$correctId = $web.Lists["Pages"].ID
$web.AllProperties["__PagesListId"] = $correctId.ToString()
$web.Update()
$web.AllProperties["__PublishingFeatureActivated"] = "True"
$web.Update()
Hope this helps to somebody
Please follow and like us:

2 thoughts on “Resolution for Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.

Leave a Reply

Enjoy this blog? Please spread the word :)