Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not convert a publishing page to modern page using powershell #630

Open
virender-gupta1 opened this issue Jun 7, 2022 · 1 comment

Comments

@virender-gupta1
Copy link

virender-gupta1 commented Jun 7, 2022

Thank you for reporting a bug. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. Thanks!

Problem Area

[ ] Page Transformation: Error during the use of page transformation from PnP PowerShell

Expected or Desired Behavior

I am trying to convert classic publishing page to modern pages using ConvertTo-PnPPage command and page layout mapping file. I want to add a people webpart in the modern page based on the Publishing Contact field. The pusblishing page does not have the contact field webpart and people webpart is not supported in field "targetwebpart" property, i tried to add it in the fixed webpart section. But its giving below error

Observed Behavior

ConvertTo-PnPPage : Parameter PersonEmail was used but is not listed as a web part property that can be used.

Steps to Reproduce

Powershell command used (replaced actual values)

ConvertTo-PnPPage -PublishingPage -Identity "page.aspx" -Overwrite -TargetWebUrl targetsite -PageLayoutMapping filepath

Below is the page layout mapping

@virender-gupta1
Copy link
Author

virender-gupta1 commented Jun 7, 2022

Below is the page layout mapping

[PowershellMappingFile.txt](https://github.com/pnp/modernization/files/8850701/PowershellMappingFile.txt)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant