Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Why batch job in error status for AX 2009

Posted on by 10

Normally when a batch job was error during execution, the status of batch job will keep in waiting, so it can execute next time. 

But sometimes, the status of batch job will turn into error status, and stop executing on schedule.

Could anyone help to check what kind of issue will cause batch job in error status? and if possible how to avoid it happen?

  • Suggested answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: Why batch job in error status for AX 2009

    Probably one of the tasks is encountering an unexpected error and the code is unable to catch the error.

    "If the batch job is more complex and it spawns additional asychronous batch tasks and that one fails with an error, that is not rescheduled, unless you specifically handle it from code."

    community.dynamics.com/.../636269

  • Li Duke Profile Picture
    Li Duke 10 on at
    RE: Why batch job in error status for AX 2009

    By checking the info log

    There were 2 tasks in this batch job, and normally it will have log for these 2 tasks.

    pastedimage1621215128926v2.png

    For the error one, the 2nd task have no log

    pastedimage1621215079134v1.png

    This was strange, as if the task was failed, normally it should have error (mark with red X) in info log.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans