[BUG] get-pnpretentionlabel on a list is giving a warning that there is no label found for the list despite one being set #5207
Replies: 13 comments
-
|
I tested using nightly version 3.1.180 and it's working. Please test against the nightly PnP PowerShell module. |
Beta Was this translation helpful? Give feedback.
-
|
@reshmee011 I've tried it with 3.1.188 now and same issue. I'll attempt today to try in a different tenant and brand new site. Also will try with different auth method, using app ID and certificate currently. |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunately not working with a different tenant either. Tested with new registration of a PNP app in that tenant and tested with both a group and a standard communication site in that tenant. Going to grab a fiddler trace of it to see if anything obvious stands out. |
Beta Was this translation helpful? Give feedback.
-
|
So the set looks great in fiddler POST /sites/PNPLabelTest2/_api/SP.CompliancePolicy.SPPolicyStoreProxy.SetListComplianceTag HTTP/1.1 and textview of this is so exactly what I expect to see in that call In the get-pnpretentionlabel call I see which gives a response {"odata.null":true} so, sharepoint API looks like it's returning null, and to me it's looking like a valid call (to my relatively amateur reading!) If we can see that that API's behaving differently in other tenants (like yours @reshmee011) I can go ahead with raising SR's for our tenant as our tenants might be all looking to be bugged. |
Beta Was this translation helpful? Give feedback.
-
|
I've raised an SR in our dev tenant for the getListComplianceTag behaviour. |
Beta Was this translation helpful? Give feedback.
-
|
Can please check whether the label is applied correctly on the library? Screenshot of the test I did today.
Any update on the SR you raised ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Looking forward to hear about the resolution which I am sure there is no ETA as from now. I was looking into whether it was possible to use MS Graph, alas could not find anything. |
Beta Was this translation helpful? Give feedback.
-
|
@warrenstark : Any updates from the MS product engineering team? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @reshmee011 , product engineering have acknowledged this is a bug under case 2510290030000337 |
Beta Was this translation helpful? Give feedback.
-
|
No ETA for resolution |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the update. I will move this issue to discussion. |
Beta Was this translation helpful? Give feedback.
-
|
@reshmee011 - from Engineering today
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Reporting an Issue or Missing Feature
When using get-pnpretentionlabel for a list it will consistently return that there is no label found for the specified list/library.
Set-pnpretentionlabel and reset-pnpretentionlabel both work for the same library.
Expected behavior
I expect that after I set via set-pnpretentionlabel or via sharepoint library page that I would be able to see the default label I set returned.
Actual behavior
Example behaviour
connect-pnponline -url $siteurl -ClientId $clientid -CertificateBase64Encoded $encodedpf -tenantname $tenantname
---- currently, no label exists on the library
get-pnpretentionLabel -List "Legacy VC Interop Library"
WARNING: No label found for the specified list/library.
--- library retention label is set to a label that is valid for tenant
set-pnpretentionLabel -List "Legacy VC Interop Library" -Label "2 years"
--- time is allowed to pass, and the get-pnpretentionlabel is checked again
get-pnpretentionLabel -List "Legacy VC Interop Library"
WARNING: No label found for the specified list/library.
Steps to reproduce behavior
Please see above for actual
What is the version of the Cmdlet module you are running?
3.1.0
Which operating system/environment are you running PnP PowerShell on?
Windows
Beta Was this translation helpful? Give feedback.
All reactions