modernization icon indicating copy to clipboard operation
modernization copied to clipboard

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

Open rajeshlohar opened this issue 4 years ago • 0 comments

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

  • All suggestions or bugs are welcome, please let us know what's on your mind.
  • If you checked the "Page Transformation: Error during the use of page transformation from PnP PowerShell" checkbox then please provide:
    • The output you see in your PowerShell session
    • The output generated by calling Get-PnPException
    • The PnP PowerShell version. Run get-module -Name SharePointPnPPowerShellOnline and copy the version info
  • If you checked the "Page Transformation: Error during the use of page transformation from .Net" checkbox then please provide:
    • The exact error message you get
    • The stack trace of the error
    • The version of the SharePointPnP.Modernization.Framework.dll assembly

Thanks for your contribution! Sharing is caring.

rajeshlohar avatar Apr 19 '22 12:04 rajeshlohar