Hi. I have problem with Remove-PnPListItem command. In list where i want to delete items it throws error like this: Object reference not set to an instance of an object. This list has few columns with managed metadata and lookups. Do you think it causes problems? In other lists it works fine.
Hi there,
Could you share your code (Formatted) and provide as much detail as you can? Does it fail on the Get-PNPListItem
command too?
A user mentioned running into the issue on this stack forum thread: azure - Get-PnPListItem : Object reference not set to an instance of an object - Stack Overflow but it’s with Get- which is why I ask. Sounds like for a responder, they chose to use the display name of the list instead. This might be an angle to look at though.