powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Get-PnPTenantSite: The property or field 'AuthContextStrength' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Open colonelclaypoo opened this issue 5 years ago • 6 comments

Reporting an Issue or Missing Feature

Issue

Expected behavior

Get-PnPTenantSite by itself or with -Connection $connection should return the tenant's site collections.

Actual behavior

Get-PnPTenantSite by itself or with -Connection $connection throws error: The property or field 'AuthContextStrength' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

Steps to reproduce behavior

Get-PnPTenantSite -Connection $connection

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

1.6.42 (nightly)

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

  • [x] Windows

I couldn't find anything wrong with cmdlet's such das Get-PnPSite or Get-PnPWeb, they work fine.

colonelclaypoo avatar Jul 19 '21 10:07 colonelclaypoo

Yeah strange error that has suddenly popped in. Looks like something has changed server side because it used to work without errors 2 days back.

gautamdsheth avatar Jul 20 '21 08:07 gautamdsheth

I'm also hitting the same issue. ProcessQuery API doesn't return AuthContextStrength property in repro tenant. Then the exception is thrown when props.AuthContextStrength is referred in constructor of PnP.PowerShell.Commands.Model.SPOSite. Fiddler captured in repro tenant is attached. failed.zip

image

taisuke0710 avatar Jul 20 '21 09:07 taisuke0710

Same issue happening here, started yesterday afternoon CET.

kloosterj avatar Jul 20 '21 10:07 kloosterj

Should be fixed with the -nightly release available tomorrow. Check and close if resolved.

veronicageek avatar Jul 20 '21 19:07 veronicageek

Thank you! It's working again using the latest nightly.

colonelclaypoo avatar Jul 21 '21 06:07 colonelclaypoo

Confirmed, issue resolved after installing 1.6.44-nightly. Thank you very much!

kloosterj avatar Jul 21 '21 06:07 kloosterj