Skip to main content

Notifications

Announcements

No record found.

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

Batch Processing Error message in log file.

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.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Batch Processing Error message in log file.

    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.

  • DynamicsAX2012 Profile Picture
    DynamicsAX2012 5 on at
    RE: Batch Processing Error message in log file.

    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
    nmaenpaa 101,156 on at
    RE: Batch Processing Error message in log file.

    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

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Batch Processing Error message in log file.

    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.

  • DynamicsAX2012 Profile Picture
    DynamicsAX2012 5 on at
    RE: Batch Processing Error message in log file.

    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
    Junaid Idrees Profile Picture
    Junaid Idrees 12,746 on at
    RE: Batch Processing Error message in log file.

    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.

  • Suggested answer
    SouravDam Profile Picture
    SouravDam 11,721 on at
    RE: Batch Processing Error message in log file.

    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

  • DynamicsAX2012 Profile Picture
    DynamicsAX2012 5 on at
    RE: Batch Processing Error message in log file.

    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
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: Batch Processing Error message in log file.

    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?

  • Binita Profile Picture
    Binita on at
    RE: Batch Processing Error message in log file.

    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.

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