You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal, I get "Unkown error".
With PnP debug log I get this output:
pwsh Error: 0 : 2024-05-14 15:57:42.4400 [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: 04b828a1-a099-5000-9591-19941115384a
ServerErrorValue:
ServerErrorDetails:
. 0ms
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.3.0 and 2.4.0
Which operating system/environment are you running PnP PowerShell on?
[x ] Windows
Linux
MacOS
Azure Cloud Shell
Azure Functions
Other : please specify
The text was updated successfully, but these errors were encountered:
ryder-cayden
changed the title
[BUG] Get-PnPTenantServicePrincipal fails with "Unkown Error"
[BUG] Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal fails with "Unkown Error"
May 15, 2024
It is an issue with the underlying endpoint. I raised a Microsoft case for the issue related to the SPO PowerShell equivalent
"Get-SPOTenantServicePrincipalPermissionGrants". The Microsoft case was closed after the right engineering team was involved and was unable to give a timeline when the fix would be available.
@ryder-cayden / @ryder-cayden - closing this issue as this is a server side issue and we can't do anything from here. Once MS fixes it , should start working here as well.
When I run the Get-PnPTenantServicePrincipal, Get-PnPTenantServicePrincipalPermissionGrants, Enable-PnPTenantServicePrincipal and Disable-PnPTenantServicePrincipal, I get "Unkown error".
With PnP debug log I get this output:
pwsh Error: 0 : 2024-05-14 15:57:42.4400 [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: 04b828a1-a099-5000-9591-19941115384a
ServerErrorValue:
ServerErrorDetails:
. 0ms
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.3.0 and 2.4.0
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: