Skip to content

[BUG] Get-PnPWebHeader - The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. #4132

@FlorianReinprecht

Description

@FlorianReinprecht

Reporting an Issue or Missing Feature

When I try to use Get-PnPWebHeader on a group-connected Site, I recieve the following error.
"Get-PnPWebHeader: The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."

I tested it on multiple tenants and asked my colleagues to try as well.

Expected behavior

It should return the properties of the Site Header.

Actual behavior

image

Steps to reproduce behavior

Connect-PnPOnline -Url $GroupConnectedSiteURL -Interactive
Get-PnPWebHeader

What is the version of the Cmdlet module you are running?

2.5.0

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions