Skip to content

Error: ConvertTo-PnPPage returning 'Page [pagename] does not exist.' #460

Answered by Xileize
Xileize asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like my problem was being caused by using the "-PublishingPages $true" parameter.

Using just "-PublishingPages" was causing a separate error ("The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."), but it turns out that it still correctly converts the page. That error appears to be caused by a lack of copying across mandatory metadata, which can be rectified using the -CopyPageMetadata parameter.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Xileize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant