web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Check batch job progress

(0) ShareShare
ReportReport
Posted on by 50

Hi there,

I was wondering if anyone knew of a way to determine the number of rows processed by a batch job when it is still in an executing state - The perentage completed does not give me as much information as I require.

Thanks in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    In SQL Server Management Studio you could check the record count for not committed transactions with the WITH (NOLOCK) parameter in your AX database.

    Try something like this:

    select count(*)
    from YourTable WITH (NOLOCK)
    --where YourTable.YourField = 1 /*if you want to have a range for filtering values*/


  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The other way would be to implement something in your batch job that writes out the status of the current execution i.e. how many records have been processed after every X row (i.e. X = 1000 if you process a million records, then there would be only 1000 updates - do not do this for each row). Then you could check that progress table during the batch execution.

    Updating the Cross-References in AX has a similar way of showing the progress bar, you could check it in the xRefUpdate class (main, updatePath, updateProgressBar methods), using the xRefDialogUpdate to track the progress.

  • Suggested answer
    Alex Voytsekhovskiy Profile Picture
    on at

    Hi Ree-G!

    Please read how you can get this done in my blog alexvoy.blogspot.ca/.../how-to-make-your-progressbar-progress.html

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans