Replies: 2 comments
-
We have the same issue, other commands like Get-PnPTenantServicePrincipalPermissionGrants fail with "Unkown error" as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
We are also getting the same error for the following cmdlets:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use Connect-PnPOnline to connect to https://mytenant-admin.sharepoint.com with -interactive and use a global admin to login.
I call Get-PnPTenantServicePrincipal and get the error "Unkown error"
With PnP debug log I get this output:
pwsh Error: 0 : 2024-04-09 16:34:46.8808 [PnP.Framework] [0] [Error] ExecuteQuery threw following exception: Microsoft.SharePoint.Client.ServerException: Unknown Error
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServerAsync(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQueryAsync()
at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryImplementation(ClientRuntimeContext clientContext, Int32 retryCount, String userAgent)
ServerErrorCode: -1
ServerErrorTypeName: Microsoft.SharePoint.Client.UnknownError
ServerErrorTraceCorrelationId: 54571da1-6033-8000-8b0c-ac72e731d398
ServerErrorValue:
ServerErrorDetails:
. 0ms
Get-PnPTenantServicePrincipal: Unknown Error
Expected behavior
I expect the call to succeed.
What is the version of the Cmdlet module you are running?
I tried that with PnP PowerShell 2.2.0 and 2.4.0
Which operating system/environment are you running PnP PowerShell on?
I have three SharePoint tenanst where the command fails this way and one where the command is succeding.
The App Reg "SharePoint Online Client Extensibility Web Application Principal" is existing in all of them.
What can cause that error?
Beta Was this translation helpful? Give feedback.
All reactions