HPE OneView
1753783 Members
7048 Online
108799 Solutions
New Discussion

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

 
MCSAP
Frequent 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
ChrisLynch
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