Skip to content

[BUG] Get-PnPTenantSite: The property or field 'LoopOverrideSharingCapability' has not been initialized.  #4041

@YuriySamorodov

Description

@YuriySamorodov

Reporting an Issue or Missing Feature

Running Get-PnPTenantSite returns an error "The property or field 'LoopOverrideSharingCapability' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."

Expected behavior

Get-PnPTenantSite should return a list of sites,

Actual behavior

Get-PnPTenantSite returns an error "The property or field 'LoopOverrideSharingCapability' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."
image

Steps to reproduce behavior

Connect-PnPOnline
Get-PnPTenantSite

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

PnP.PowerShell 2.4.101
PSVersion 7.4.3
OS Microsoft Windows 10.0.19045

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreproducedIssue reproduced after testing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions