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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Error log for Journal lines in D365 FO

(1) ShareShare
ReportReport
Posted on by 200
Hi,
 
I would like to capture all the Journal line errors in a journal which is getting posted along with a custom string which is stored at line level. lets say line number in this case
 
For eg. there are 10 lines in a Journal and while posting 2 of those gave me error lets say
/Amount is too high for Voucher 1 / and  /Amount is too high for Voucher 2/ 
So in this case although I can distinguish the record via the voucher but I would also like to add an additional custom field which would give me above error as below
Amount is too high for Voucher 1 - line 1
Amount is too high for Voucher 1 - line 2
 
I have checked the classes and it seems most of the code is in ledgerjournalcheckpost , ledgerjournalcheckpostresults. but would like to understand at what point should I check and update the value so that I can get the new errors as requested.
 
Thanks,
VK
I have the same question (0)
  • Martin Dráb Profile Picture
    240,290 Most Valuable Professional on at
    You'd have to collect more details than just that it's somewhere in these classes. You can, for example, put a breakpoint to Info.add(), validate the journal and check where exactly are the messages added. Look at the whole call stack and think about where you could add your logic.
     
    Note that adding setPrefix() will likely be much then modifying all the messages.
  • VM-02050213-0 Profile Picture
    200 on at
    Hi Martin,
     
    Thanks for the reply.
    I have checked the std code and its seems that the ledgerjournalcheckpostresults is the class that maintains the error details.
    My requirement is that when the error is being fetched I need to get the line number as well of that error so that the user knows which the line number is to be fixed.
     
    Thanks,
    VK.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 260 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 224 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans