Skip to content

[BUG] - Unregister-PnPHubSite throwing Object reference not set to an instance of an object. #4943

@reshmee011

Description

@reshmee011

Reporting an Issue or Missing Feature

An unusual situation from my dev tenant where hubsiteUrl is reported as empty, hence throwing the message 'Object reference not set to an instance of an object.' with cmdlet Unregister-PnPHubSite

Image

Expected behavior

Unregister hub site successfully

Actual behavior

message 'Object reference not set to an instance of an object.' thrown

Steps to reproduce behavior

unregister-pnphubsite -site "https://reshmeeauckloo.sharepoint.com/sites/TestInvestmentHub"

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

3.141

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions