pnp / modernization

All modernization tooling and guidance
http://aka.ms/sppnp-modernize
MIT License
156 stars 86 forks source link

ConvertTo-PnPClientSidePage : Cannot bind positional parameters because no names were given. #624

Open rajeshlohar opened 2 years ago

rajeshlohar commented 2 years ago

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 [ ] Page Transformation: Error during the use of page transformation from .Net [ ] Page Transformation: Page is not looking correct after transformation [ ] Modernization Scanner: something went wrong...

Expected or Desired Behavior

If you are reporting a bug, please describe the expected behavior. If you are suggesting an enhancement please describe thoroughly the enhancement, how it can be achieved, and expected benefit.

Observed Behavior

If you are reporting a bug, please describe the behavior you expected to occur when performing the action. If you are making a suggestion, you can delete this section.

Steps to Reproduce

Run Connect-PnPOnline -Url https://xxx.sharepoint.com/publishing site Run Export-PnPClientSidePageMapping

$result = ConvertTo-PnPClientSidePage -Identity "xxx.aspx" -PublishingPage -TargetConnection $targetConnection -PublishingTargetPageName "xx.aspx" -PageLayoutMapping "C:\xxxxxx\xxxxxxxx-f07a6373-9ba9-4aca-93b6-1e348ae932c7.xml" -Connection $sourceConnection -TargetWebUrl "https://xxxxxxxxx.sharepoint.com/sites/xxxxxxxxx" -Overwrite

Submission Guidelines

Delete this section after reading

Thanks for your contribution! Sharing is caring.