Get-PnPPage produces reproducible error on certain pages #1442
Replies: 4 comments 2 replies
-
Was this ever resolved? It's almost two years later, and I'm running into the exact same issue. I haven't noticed an obvious rhyme or reason to the issue. Many of the pages have had their title changed after creation, but that's very common in our organization. And not all pages where the title and FileLeafRef are obviously different have problems. An example of the problem I'm having: Page title: "AD&D insurance, Local 12" Code: Error: |
Beta Was this translation helpful? Give feedback.
-
I don‘t think it was resolved. I worked around it, by using the REST-API directly for what I was trying to achieve. Unfortunately I didn‘t have the time to look into the source code to analyze it further.
Gesendet von Outlook für iOS<https://aka.ms/o0ukef>
…________________________________
Von: raytri ***@***.***>
Gesendet: Friday, August 11, 2023 8:27:06 PM
An: pnp/powershell ***@***.***>
Cc: Matthias Glubrecht ***@***.***>; Author ***@***.***>
Betreff: Re: [pnp/powershell] Get-PnPPage produces reproducible error on certain pages (Discussion #1442)
Was this ever resolved? It's almost two years later, and I'm running into the exact same issue.
I haven't noticed an obvious rhyme or reason to the issue. Many of the pages have had their title changed after creation, but that's very common in our organization. And not all pages where the title and FileLeafRef are obviously different have problems.
An example of the problem I'm having:
Page title: "AD&D insurance, Local 12"
FileLeafRef "Benefits-ADD-insurance-GHI-Local-12.aspx"
Code:
$pageDetails = Get-PnPPage -Identity "Benefits-ADD-insurance-GHI-Local-12.aspx"
Error:
Get-PnPPage: 's' is invalid after a value. Expected either ',', '}', or ']'. Path: $ | LineNumber: 0 | BytePositionInLine: 13171.
—
Reply to this email directly, view it on GitHub<#1442 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACR7XZMUBXTGSCOUV7M3RMTXUZ2PVANCNFSM6AAAAAA3NIL7XM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This issue is happening for me as well only on 1 page right now |
Beta Was this translation helpful? Give feedback.
-
I am experiencing the same issue as well with a page and I feel like the reason may be that it used to have a forward slash in it but now does not Does anyone know if this is something suitable to be logged as an issue in this project? Or is it part of the PnP Framework? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a modern page (Article page) in SharePoint online that causes an error when I try to get it with Get-PnPPage.
The error message is
Get-PnPPage : 'S' is invalid after a value. Expected either ',', '}', or ']'. Path: $ | LineNumber: 0 | BytePositionInLine: 1748.
In Zeile:1 Zeichen:1
I can supply the value of CanvasContent1 if it helps in debugging. It's in the attached file contents.txt.
contents.txt
Beta Was this translation helpful? Give feedback.
All reactions