Share via


Resolve-PartnerError

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

Syntax

AnyErrorParameterSet

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

LastErrorParameterSet

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

Parameter properties

Type:

ErrorRecord[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AnyErrorParameterSet
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Last

The last error

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

LastErrorParameterSet
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

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