Announcements
Hi
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
I have set "Maximum No. of Attempts to Run" to 10, but it seems to have no effect at all ...
But the job queue entry stay with the status 'Error', and i must set it to 'Ready' manually.
I known there are some workaround (like https://robertostefanettinavblog.com/2017/04/02/how-to-restart-a-job-in-error-or-frozen-completed-status/), but i want to avoid them ...
There is something to do for "Maximum No. of Attempts to Run" to work ?
*This post is locked for comments
"The Maximum No. of Attempts to Run field" is used to set up how many times the program tries to run a task.
This is useful for situations where a task can be unresponsive at times (for example, because it depends on some external resource that is not always
available) .
the "Error" status , the job queue is assumed success but there is error from process that is run by job queue.
In codeunit 472, function IsReadyToStart, you can change to also include "Error" , in this case error job queue will be picked up as well without you manually change the status to ready.
But normally you want to solve the error first before running the job queue again..
André Arnaud de Cal...
294,095
Super User 2025 Season 1
Martin Dráb
232,866
Most Valuable Professional
nmaenpaa
101,158
Moderator