[BUG] "Get-PnPListItem -List mylist" throws error for some lists. #3932
Replies: 4 comments 1 reply
-
Same issue on Linux |
Beta Was this translation helpful? Give feedback.
-
This is the output of the exception in a try-catch: PSMessageDetails : Anyone have an idea of what may be wrong? |
Beta Was this translation helpful? Give feedback.
-
In the last comment it looks like you're running the cmdlet Set-PnPListItem instead of Get-PnPListItem (where this discussion should be about). Is this correct? |
Beta Was this translation helpful? Give feedback.
-
Old and new URL are different, so what is it that is not working? I tried updating a hyperlink using set-pnplistitem without issues. |
Beta Was this translation helpful? Give feedback.
-
Reporting an Issue or Missing Feature
Get-PnPListItem
This command is failing to list items in some lists.
Expected behavior
Return a list of items in list
Get-PnPListItem -List "service Centers"
Id Title GUID
1 Y1 2d691f57-93f7-4978-b3d9-0fb27923e6ed
2 Y3 3124b46a-8298-49de-9ebc-0ea29ac2f373
3 Y5 66a26e52-285e-4fe6-9fe4-e1259b5e146f
4 Y4 f015218c-ee4e-4423-8ef8-ddda0dd5d4e9
Actual behavior
Get-PnPListItem -List cameras
Get-PnPListItem: Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null. "GetList
"
Steps to reproduce behavior
Please include complete script or code samples in-line or linked from gists
Connect-PnPOnline -Url $SiteURL -Credentials $CredentialSPOA
Get-PnPListItem -List cameras
What is the version of the Cmdlet module you are running?
2.4.0
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions