HPE OneView
cancel
Showing results for 
Search instead for 
Did you mean: 

Get-HPOVAlert : An unexpected and unhandled runtime exception occurred.

 
Highlighted
Advisor

Get-HPOVAlert : An unexpected and unhandled runtime exception occurred.

Running into a frustrating error.  Sample code is below.  The error comes up inconsistently but about 8/10 times.

Get-HPOVAlert -state Cleared -Start '2019-01-01' -end (get-date).AddDays(-60)

Get-HPOVAlert : An unexpected and unhandled runtime exception occurred. Please contact your authorized support representative and provide them with a support dump.
At line:1 char:1
+ Get-HPOVAlert -state Cleared -Start '2019-01-01' -end (get-date).AddD ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Send-HPOVRequest:String) [Get-HPOVAlert], InvalidOperationException
+ FullyQualifiedErrorId : UNEXPECTED_EXCEPTION,Get-HPOVAlert

OV appliance is 5.0 and my using HPOneView.500 module.

 

1 REPLY 1
Highlighted
HPE Pro

Re: Get-HPOVAlert : An unexpected and unhandled runtime exception occurred.

This could be caused by a few things.  It appears that the Cmdlet logic is a bit mishandled with swapping the start and end datetime values in the API call.  Please open an issue over on the HPE OneView PowerShell library's Issue tracker.


I am an HPE employee

Accept or Kudo