Job scheduler bug?

oclistoclist Member Posts: 20
edited 2004-07-12 in Navision Attain
Is there a bug in Navision 3.10A for the Job Scheduler function? It seems so...

the following code in the job sched mgmt form is...

IF (TIME - LastCheck) / 1000 < JobSchedMgtSetup."Interval Check (Sec.)" THEN BEGIN

The problem is that when the time changes over to the new day the left side of the express turns into a large negative number.

ex. TIME = 12:50 AM, LastCheck = 11:55 PM.

I could probably write my own code to fix this but I was wondering if there is a MBS official fix.

speaking of which is there a non-partner site where I can get patches and fixes information?

Thanks,
oc

Comments

  • fbfb Member Posts: 246
    The problem you list was corrected in the W1 3.60 release. The v3.10 code, as follows:
    IF (TIME - LastCheck) / 1000 < JobSchedMgtSetup."Interval Check (Sec.)" THEN
      EXIT;
    LastCheck := TIME;
    
    was changed to:
    IF TIME < LastCheckTime THEN BEGIN
      LastCheckSec := ((235959T - LastCheckTime) / 1000) + ((TIME - 000000T) / 1000);
    END ELSE
      LastCheckSec := (TIME - LastCheckTime) / 1000;
    
    IF LastCheckSec < JobSchedMgtSetup."Interval Check (Sec.)" THEN
      EXIT;
    
    LastCheckTime := TIME;
    
    where LastCheckSec is a local Decimal variable, and LastCheckTime is a rename of the global LastCheck.

    Aren't patches and fixes available on CustomerSource?
Sign In or Register to comment.