Forums

Harvest 2.0 Date Drop-Down Box throws error

This question is answered

Whenever we change the date parameters, we get the following error:

"An unknown problem occured with your last request.  Please click back, or the link below and try again."

It doesn't matter what dates we select.  Thanks!

 

 

Verified Answer
  • I've seen that error message pop up frequently if Harvest is being run as a virtual directory. Try moving the Harvest application to its own site and see if that resolves the issue.

    If this isn't the reason, you can try changing the date range in the Url and see if it's actually the date range causing the error or if it's the date control.

    For example: http://harvest.telligent.com/Report.aspx/1/20080904/20081225

    (set the start and end date in the Url. If your siteid is something other than 1, change that in the Url as well)

    - Andrew

All Replies
  • I've seen that error message pop up frequently if Harvest is being run as a virtual directory. Try moving the Harvest application to its own site and see if that resolves the issue.

    If this isn't the reason, you can try changing the date range in the Url and see if it's actually the date range causing the error or if it's the date control.

    For example: http://harvest.telligent.com/Report.aspx/1/20080904/20081225

    (set the start and end date in the Url. If your siteid is something other than 1, change that in the Url as well)

    - Andrew

  • Thanks, Andrew.  Harvest is installed on its own site. 

    I've tried to force the dates on the URL, and while I don't get the same error message, I also don't get the date ranges I asked for.  I get the default date range.

    Thanks again.

  • Odd, I had a problem with it as well. The first time I entered the dates in the URL it still showed the default date range. The next time I tried it worked correctly. Try entering the URL with dates more than once and see what happens.

    Are you adding any additional JavaScript to the site?

    - Andrew

  • We're have not added any additional Javascript.

    I tried several times to enter the dates, to no avail.   Thanks again for your prompt attention, though. 

  • Hmm, going to need to dig deeper then.

    Check your rs_Exceptions table

    or navigate to /report.aspx/1/ExceptionReport (bet you didn't know that was there!)

    ...and see if you can locate an exception that would have to do with the date control.

    The date control itself is called DateRange.ascx

     

    Let me know what you find,

    - Andrew

  • Event Type:                     Warning
    Event Source:                ASP.NET 2.0.50727.0
    Event Category:            Web Event
    Event ID:   1309
    Date:                                    1/5/2009
    Time:                                   7:07:06 AM

    Event code: 3005

    Event message: An unhandled exception has occurred.

    Event time: 1/5/2009 7:07:06 AM

    Event time (UTC): 1/5/2009 12:07:06 PM

    Event ID: 847f04e670eb48cdbb0d633bc4f686a5

    Event sequence: 2

    Event occurrence: 1

    Event detail code: 0

     

    Application information:

        Application domain: /LM/W3SVC/1372757202/Root-1-128756308216681218

        Trust level: Ful
    Application Virtual Path: /

        Application Path: D:\Inetpub\MDCHarvestReporting\

        Machine name: PNTD3BWEB75A

     

    Process information:

        Process ID: 15384

        Process name: w3wp.exe

        Account name: NT AUTHORITY\NETWORK SERVICE

     

    Exception information:

        Exception type: ArgumentOutOfRangeException

        Exception message: Year, Month, and Day parameters describe an un-representable DateTime.

     

    Request information:

        Request path: /Login.aspx

            User: 

        Is authenticated: False

        Authentication Type: 

        Thread account name: NT AUTHORITY\NETWORK SERVICE

     

    Thread information:

        Thread ID: 1

        Thread account name: NT AUTHORITY\NETWORK SERVICE

        Is impersonating: False

        Stack trace:    at System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)

       at System.DateTime..ctor(Int32 year, Int32 month, Int32 day)

       at Harvest.Library.DateHelper.GetStartDateOfLastMonth()

       at Harvest.Library.ReportParams.get_StartDate()

       at Harvest.Library.CookieHelper.SetCookieSettings(ReportParams reportParams)

       at Harvest.Web.Global.Session_Start(Object sender, EventArgs e)

       at System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e)

       at System.Web.SessionState.SessionStateModule.CompleteAcquireState()

       at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)

       at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Server Error in '/' Application.


    Year, Month, and Day parameters describe an un-representable DateTime.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

     

    [ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime.]

       System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day) +7653746

       System.DateTime..ctor(Int32 year, Int32 month, Int32 day) +17

       Harvest.Library.DateHelper.GetStartDateOfLastMonth() +112

       Harvest.Library.ReportParams.get_StartDate() +115

       Harvest.Library.CookieHelper.SetCookieSettings(ReportParams reportParams) +381

       Harvest.Web.Global.Session_Start(Object sender, EventArgs e) +222

       System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8776496

       System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237

       System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504

       System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66

       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

     

  • That is a known issue with harvest which happens due to the month of the year being January.  The fix for this issue will be included in the Harvest Service Pack coming out later today or tomorrow. 

  • Hey Alex,

    May i know in which service pack version the issue has been sort out?

    Thanks

    Veer

     

  • This issue was resolved in Harvest 2.0 SP1.