the date is not valid

vijay_gvijay_g Member Posts: 884
hi,
when i am going to close database i see error "the date is not valid".
what can be reason behind it?

Comments

  • DaveTDaveT Member Posts: 1,039
    Hi,

    When you close Nav it runs the CompanyClose trigger in codeunit 1 Application Management. I suspect it's an issue with registering time for the user. Turn on the debugger and trace the error.
    Dave Treanor

    Dynamics Nav Add-ons
    http://www.simplydynamics.ie/Addons.html
  • kinekine Member Posts: 12,562
    Aren't you using NAV 5.00 without SP? I think there was some bug in one version in the time registration part...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • vijay_gvijay_g Member Posts: 884
    no i am using nav 6.0 sp1.
  • AdamRoueAdamRoue Member Posts: 1,283
    There was a known issue in an earlier version where if you set the user up to register time it gave you this error message. If set remove it from your user and retest. If not set you will need to do some more investigation.
    The art of teaching is clarity and the art of learning is to listen
  • eYeeYe Member Posts: 168
    I got the same. Did only a client upgrade to NAV2009 SP1.
    Objects are NAV2009.

    Also, this error only occurs in a native database. Same database restored in SQL: no problem...
    Kind Regards,
    Ewald Venter
  • Alex_ChowAlex_Chow Member Posts: 5,063
    Make sure you check OFF the Register Time checkbox on the General Ledger Setup.
  • eYeeYe Member Posts: 168
    The only problem is that we need to use the time register.

    Another work around was to do the following in Codeunit 1:
    LogInEnd()
    IF LogInWorkDate <> 0D THEN
      IF LogInWorkDate = LogInDate THEN
        WORKDATE := TODAY
      ELSE
        WORKDATE := LogInWorkDate;
    
    //## EV - BEGIN
    IF LogInDate = 0D THEN
     EXIT;
    //## EV - END
    
    IF USERID <> '' THEN BEGIN
    
    Kind Regards,
    Ewald Venter
Sign In or Register to comment.