Skip to content

Error Applying Retention Label to SharePoint Document Library using console utility #5038

@dpknamdeo

Description

@dpknamdeo

I have developed console utility by using CSOM C# and below is my code. Earlier it was working perfectly fine but from last week I am encountering issue.

var applyToExistingItems = true;

SPPolicyStoreProxy.SetListComplianceTag(clientContext, listRootFolder.ServerRelativeUrl, "Permanent (100 Years)", false, false, applyToExistingItems);

clientContext.ExecuteQuery();

Error:

"Value cannot be null. Parameter name: Empty correlation Guid"

Image

Do you have any idea why working code stopped working.

I appreciate your help in advance!

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