Thursday, April 25, 2013

[OpsMgr 2007 R2][OpsMgr 2012] Running Operations Manager reports fail with "System.ArgumentOutOfRangeException" error


Article ID: 2836388 - View products that this article applies to.

Symptoms

When running reports using the Operations Manager console, the report fails with the error message below:

Date: <date-time>
Application: Operations Manager
Application Version: 7.0.9538.0
Severity: Error
Message: Cannot execute report.
System.ArgumentOutOfRangeException: Value of '0001-01-01 12:00:00 AM' is not valid for 'Value'. 'Value' should be between 'MinDate' and 'MaxDate'.
Parameter name: Value
   at System.Windows.Forms.DateTimePicker.set_Value(DateTime value)
   at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.Controls.RelativeDateTimePicker.LoadRelativeDateValues(ComboBox dateEditor, DateTimePicker timeEditor, ReportParameterInfo dateBaseTypeParameter, ReportParameterInfo dateBaseValueParameter, ReportParameterInfo dateOffsetTypeParameter, ReportParameterInfo dateOffsetValueParameter)
   at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.Controls.RelativeDateTimePicker.LoadValues(ReportParameterInfoCollection reportParameters)
   at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.Controls.RelativeDateTimeBusinessPicker.LoadValues(ReportParameterInfoCollection reportParameters)
   at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Parameters.ReportParameterBlock.LoadValues()
at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ReportForm.OnRenderingCompleteJob(Object sender, ConsoleJobEventArgs args)


Cause

This issue can occur if there is a custom Short DateTime format being used on the console server.

For example, say the system locale on the Operations console server is ENC and the default short DateTime format for ENC locale is dd/MM/yyyy. If this short DateTime format is changed from dd/MM/yyyy to a different format such as yyyy-MM-dd, the error above may occur.

Resolution

To resolve this issue, set the short DateTime format to the system locale's default value.

More information

Custom DateTime formats are not supported with System Center Operations Manager reporting.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Properties

Article ID: 2836388 - Last Review: April 18, 2013 - Revision: 1.0
Applies to
Microsoft System Center 2012 Operations Manager Service Pack 1
Microsoft System Center 2012 Operations Manager
Microsoft System Center Operations Manager 2007 R2
Microsoft System Center Operations Manager 2007 Service Pack 1
Microsoft System Center Operations Manager 2007


This posting is provided "AS IS" with no warranties.

No comments:

Post a Comment