Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Closed
1 of 6 tasks
FlorianReinprecht opened this issue Aug 2, 2024 · 1 comment · Fixed by #4147
Assignees
Labels
bug Something isn't working

Comments

@FlorianReinprecht
Copy link

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
@FlorianReinprecht FlorianReinprecht added the bug Something isn't working label Aug 2, 2024
@gautamdsheth gautamdsheth self-assigned this Aug 9, 2024
gautamdsheth pushed a commit to gautamdsheth/powershell that referenced this issue Aug 9, 2024
@gautamdsheth
Copy link
Collaborator

@FlorianReinprecht thanks for raising this issue. Has been fixed and will be available in tomorrow's nightly builds as well as the next major version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants