Resolve-PartnerError

Display detailed information about PowerShell errors, with extended details for Partner Center PowerShell errors.

Syntax

Resolve-PartnerError
       [[-Error] <ErrorRecord[]>]
       [<CommonParameters>]
Resolve-PartnerError
       [-Last]
       [<CommonParameters>]

Description

Resolves and displays detailed information about errors in the current PowerShell session, including where the error occurred in script, stack trace, and all inner and aggregate exceptions. For Partner Center PowerShell errors provides additional detail in debugging service issues, including complete detail about the request and server response that caused the error.

Examples

Example 1: Resolve the last error

PS C:\> Resolve-PartnerError -Last

Get the details of the last error.

Example 2: Resolve all errors in the session

PS C:\> Resolve-PartnerError

Get details of all errors that have occurred in the current session.

Example 3: Resolve a specific error

PS C:\> Resolve-PartnerError $Error[0]

Get the details of the specified error.

Parameters

-Error

The error records to resolve

Type:ErrorRecord[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Last

The last error

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.Management.Automation.ErrorRecord[]

Outputs

Microsoft.Store.PartnerCenter.PowerShell.Models.Errors.PartnerErrorRecord

Microsoft.Store.PartnerCenter.PowerShell.Models.Errors.PartnerExceptionRecord

Microsoft.Store.PartnerCenter.PowerShell.Models.Errors.PartnerRestExceptionRecord