pnp / pnp/pnpframework

ConvertTo-PnPPage unable to transform pages due to 'Method "GetList" does not exist.'

Open
#796 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

Hello

I'm trying to modernise SharePoint 2013 pages into SharePoint Online.

I'm using PnP.PowerShell 1.12.0 and PowerShell 7.3.0, though I have experienced errors with earlier versions of both.

I'm running the following commands:

$target = Connect-PnPOnline "https://TENANT.sharepoint.com/sites/modernblog" -ReturnConnection
$source = Connect-PnPOnline "http://INTRANET/sites/Publishing" -TransformationOnPrem -ReturnConnection -CurrentCredentials

ConvertTo-PnPPage -Identity "Welcome.aspx" -PublishingPage -TargetWebUrl $target -Connection $source
ConvertTo-PnPPage -identity "Blog Post" -BlogPage -TargetWebUrl $target -Connection $source

Everything appears to connect as expected, I can see the connection to the SP13 environment, but then it fails with the following error:

ConvertTo-PnPPage: Method "GetList" does not exist.

Output from Get-PnPException:

Message : Method "GetList" does not exist.
Stacktrace : at PnP.PowerShell.Commands.Base.PnPConnectedCmdlet.ProcessRecord() in c:\build\src\Commands\Base\PnPConnectedCmdlet.cs:line 79
at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() in c:\build\src\Commands\Base\PnPSharePointCmdlet.cs:line 121
at System.Management.Automation.CommandProcessor.ProcessRecord()

I've completely removed all PnP.PowerShell instances and reinstalled but it's still the same each time.

Any help appreciated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the two Connect-PnPOnline commands and ConvertTo-PnPPage examples in the issue. Start at PnPConnectedCmdlet.cs line 79 and trace the reported missing GetList method; done means determining and addressing why the page conversion fails against the SharePoint 2013 source, with the supplied commands no longer producing that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.