Skip to content

[BUG] "Multiple active sites found for Url:" when running Set-PnpTenantSite on newly created site #5359

Description

@slundmark

Reporting an Issue or Missing Feature

When running Set-PnpTenantSite -Identity https://contoso.sharepoint.com/sites/sitename -DenyAddAndCustomizePages:$false we get an error saying:

"Set-PnPTenantSite: Multiple active sites found for Url: https://renholmen.sharepoint.com/sites/OFF-SL-Test-0625-1532, SiteIds: d65b872c-0c52-4028-afa0-daaaa84c1111, 00000000-0000-0000-0000-000000000000, Status: Updating, Creating"

Expected behavior

There should be no error when running the cmdlet

Actual behavior

❯ Set-PnPTenantSite -Identity https://contoso.sharepoint.com/sites/OFF-SL-Test-0625-1532 -DenyAddAndCustomizePages:$false
Set-PnPTenantSite: Multiple active sites found for Url: https://renholmen.sharepoint.com/sites/OFF-SL-Test-0625-1532, SiteIds: d65b872c-0c52-4028-afa0-daaaa84c1111, 00000000-0000-0000-0000-000000000000, Status: Updating, Creating

Steps to reproduce behavior

Please include complete script or code samples in-line or linked from gists

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

PowerShell 7.6.3 and PnP.PowerShell 3.1.0

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

  • Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions