Skip to content

Set-PnPRetentionLabel started throwing error #5027

@RahulDhiman995

Description

@RahulDhiman995

Hi Community,

I'm trying to apply a retention label to a SharePoint Online document library using PnP PowerShell. Here's the command I'm using: Set-PnPRetentionLabel -List $libraryName -Label $retentionLabel -SyncToItems $true

Before this we were able to apply label by using same script.

However, I’m encountering the following error:
Set-PnPRetentionLabel: Value cannot be null. Parameter name: Empty correlation Guid.

I've verified that both $libraryName and $retentionLabel are correctly populated. Has anyone encountered this issue before or can suggest what might be causing it?

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