Skip to main content

Notifications

Announcements

No record found.

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

How to detect where the record gets updated when update method is not triggered

(3) ShareShare
ReportReport
Posted on by 90
Hello,
 
I have an issue that Qty field in Invoice journal line (CustInvoiceTrans) gets wrong value so I want to debug it. It happens when I post free text invoice.
When insert method hits, it gets correct value and during whole process it has correct value but suddenly when it is finished, it resets to 1.
Update method doesnt hit at all. 
Any suggestions how can I debug why and where it gets wrong value in the end?
 
Thanks
Categories:
  • Martin Dráb Profile Picture
    Martin Dráb 230,468 Most Valuable Professional on at
    How to detect where the record gets updated when update method is not triggered
    To read uncommitted data in T-SQL queries, you can use NOLOCK hint in select statements, e.g. SELECT * FROM CustInvoiceTrans WITH (NOLOCK). Or you can utilize SET TRANSACTION ISOLATION LEVEL.
  • devgirlX Profile Picture
    devgirlX 90 on at
    How to detect where the record gets updated when update method is not triggered
    How can I detect uncommitted changes in the db?
  • techAx Profile Picture
    techAx 8 on at
    How to detect where the record gets updated when update method is not triggered
    While I was debugging through all references that I found that are pointing to that field, it had everywhere correct value.
  • Martin Dráb Profile Picture
    Martin Dráb 230,468 Most Valuable Professional on at
    How to detect where the record gets updated when update method is not triggered
    How have you checked that "during whole process it has correct value"? Did you periodically check uncommitted (!) values in the database? Or do you mean that you merely checked values loaded to a particular variable (which tell you nothing about changes done by any other code)?
  • techAx Profile Picture
    techAx 8 on at
    How to detect where the record gets updated when update method is not triggered
    I tried that, it doesn't hit as well.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 10,770 Super User 2024 Season 2 on at
    How to detect where the record gets updated when update method is not triggered
     
    Try validateField or doUpdate method.
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,759 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans