Options

NAV2018 Job Queue not retry after hit error

PanhaPanha Member Posts: 3
In Nav 2018, i have a job queue that fail sometimes

The error is ok (it's because of some lockted table), so i want the job queue to retry

Answers

  • Options
    einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    I think this is by design. If you want to restart it automatically you have to implement another solution.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • Options
    kylehardinkylehardin Member Posts: 257
    You have to change the code. Codeunit 448 Job Queue Dispatcher, function GetNextRequest. Something like this:

    //JobQueueEntry.SETRANGE(Status,JobQueueEntry.Status::Ready);
    JobQueueEntry.SETFILTER(Status, 'Ready|Error');

    That is from 2016, so 2018 may have an event you can subscribe to rather than modifying the base object.
    Kyle Hardin - ArcherPoint
Sign In or Register to comment.