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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Batch Processing Error message in log file.

(0) ShareShare
ReportReport
Posted on by 5

Hi,

I have a requirement in Batch Processing Info log.

Question:

How can we capture only error messages in the info log in Batch processing in AX2012.

I have the same question (0)
  • Binita Profile Picture
    on at

    Hi

    If any batch go into error the it will be capture in info log, Go to batch history and click the log button then you can see it.

    Can you explain bit more about your requirement.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi DynamicsAX2012,

    The infolog is already captured for batch jobs, so you just need only to read it properly. Check how "Show log" button on batch job form works and filter out non-error messages.

    But I think hiding non-error messages will make troubleshooting more complicated, as you can get general error in the end like "There is an error", but more details are stored in info or warning messages.

    By the way is it global requirement or only for one batch job? What's are benefits of implementing such feature?

  • DynamicsAX2012 Profile Picture
    5 on at

    Hi Binita Thanks for the reply,

    I can see the error in the info log.

    Actual result : Info log is showing successful records included with errors

    Expected result: If an error is encountered info log should exclude successful records.

    This is the Info I am getting after running the Batch processing ,I have to exclude the successful Lines in the Info ie Info has to show only Error records.

  • Suggested answer
    SouravDam Profile Picture
    11,730 on at

    Such information is showing altogether because multi records are inserted into staging by one single application where few contains error.

    Would like to understand why such requirement is desired to display only the error information when the info log itself shows red cross marks against each error info which is in fact helping to distinguish between the correct and wrong information!

    Regards,
    Sourav

  • Suggested answer
    Junaid Idrees Profile Picture
    on at

    Hello DynamicsAX2012,

    When we post multiple transactions through batch so logically it should generate and capture the complete log for clear visibility what has been successfully processed so far and what didn't get posted due to x reason.

  • DynamicsAX2012 Profile Picture
    5 on at

    The problem is that the Info log that populates at the end of staging table post includes both successful and error records. Because the number of processes exceeds 10,000 lines the Infolog cannot show all errors, we need to remove successful records and leave only the error so that if there is any critical stop we can determine what the error was that caused it.

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Prince,

    Couldn't you just modify the batch job to restrict adding unnecessary info data? It should be quite easy to locate a place where and comment it out or diable by parameter.

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    I also suggest to limit the information that you're writing to infolog, if you don't need that information. If you're only interested in errors, then why are you printing other information to the infolog?

    You can also increase the maximum nr of infolog messages with a small customization: daxingwitheshant.blogspot.com/.../how-to-change-infolog-limit-in-ax-2012.html

  • DynamicsAX2012 Profile Picture
    5 on at

    Hi,

    The Batch Processing that we are using here is Import staging where we have more volume of data, we are looking for a solution of limiting the messages in the info log .

    Is it Possible through X++?.

    If yes Can some one share me the sample piece of code.

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    I don't understand what you mean by "RGIS Import".

    All infolog messages are created by x++ code, so you should look into the code that creates the infolog messages and evaluate if you change the code so that it would not create so many infologs.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 451 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans