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.
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 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.
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.
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
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.
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.
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.
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
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.
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?
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.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156