Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)
Answered

Job queue : retry after error

(0) ShareShare
ReportReport
Posted on by 216

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

  • Verified answer
    I Gusti Made Ari Profile Picture
    3,594 on at
    RE: Job queue : retry after error

    "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..

    gbr_5F00_99.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans