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

How to correctly and efficiently debug inserted value of a table ?

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to investigate some value when inserted into a standard table. How is the efficient way to do it ?

I just create a CoC on the table and add the Insert and Write and put breakpoint into that method, but it doesn't stop.

This is the code looks like : 

[ExtensionOf(tableStr(RevRecDeferredLine))]
final class My_TableRevRecDeferredLine_Extension
{
    public void insert()
    {
         next insert();
    }

    public void write()
    {
        next Write();
    }

}

The process in question is Revenue Recognition Schedule, which the table (if I'm not mistaken by looking into the form) is RevRecDeferredLine, so that is my CoC. Also worth to mentioned, this table I believe it is inserted after Sales Order Invoiced, so the debug is started when I'm doing Generate Invoice, but as mentioned, it doesn;t stop at my CoC

Thanks,

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    Hi VoltesDev,

    How are you debugging? I mean using attach to process or through start up project?

    If yes, have you checked whether the symbols are being loaded?

    Also, you can add a find Reference to the table and see where the record is being inserted into the table.

    Thanks,

    Girish S.

  • VoltesDev Profile Picture
    on at

    Hi Girish,

    Through "Attach to process" and select w3wp.exe. How to check this -> "have you checked whether the symbols are being loaded?"

    As you're mentioned "Find Reference" to the table, actually I did this already, but now I just realized the result is all custom classes only and make me more confused now as this is standard table.

    Thanks,

  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at

    Does it mean that you aren't using IIS Express for development? If you do, you need to attach debugger to iisexpress.exe.

    "Find references" depends on information collected when running a build with "Update cross references". If you're missing references for some modules, rebuild them with this option enabled.

  • GirishS Profile Picture
    27,827 Moderator on at

    If the symbols have been loaded properly the debugger point will be highlighted - If it's not loaded, you will get some warning like symbol - where you place the debugger.

    Refer to the class "RevRecCustPostInvoiceDeferredNew" >> createDeferredLines and createDeferredLinesForInvoice - This are the methods which inserts record into "RevRecDeferredLine" table. Put the debug point in the above methods and check.

    Thanks,

    Girish S.

  • VoltesDev Profile Picture
    on at

    Hi Martin,

    I'm just trying to understand more on your suggestion. So the "Update cross references" is it the one in front of Build Dialog ?

    pastedimage1673599353422v1.png

    So, it is not the one at the Options -> Build cross reference data ? Because I always check this one every time doing Full Build.

    But anyway yesterday I checked the Build reference packages, as I suspected, it is taking very long time to complete, but the result is correct, the result of Find reference is with the standard classes. And now I can see the classes that Girish suggest me to check.

    Thanks

  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at

    "Build referenced packages" has nothing to do with enabling an update of cross references. It says whether packages related to your module should be build too.

    You said you always used "Build cross reference data", but you probably build just your package and not the packages you actually needed cross references for.

  • VoltesDev Profile Picture
    on at

    Hi Martin,

    Do you mean the packages in Model Parameters ? As this classes in questioned are from Revenue Recognition module, I have selected it.

    pastedimage1673602727702v1.png

    Is there any other place I should check ?

    Thanks,

  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at

    Please look at your previous sceenshot. The "Full build" dialog allows you to select package you want to build and you've selected just one: FSGAddress. If you want to build another, such as GeneralLedger, tick its checkbox too.

    Your last screenshot about the configution which packages your package depends on and objects from which packages you can use in your code.

  • VoltesDev Profile Picture
    on at

    No, I'm sorry that is only an example.

    But I probably mistaken on how I'm doing my Build. From what I understand, isn't that we need to specify what packages related to our own model in this Update Model Parameters ? So for example my model is FSGAddress, then I will go to Update Model Parameters to check whatever packages that relates and used, which of course the usual Application Common, Foundation, Suited, General Ledger, etc.. So in this case in my model using Revenue Recognition, so I also checked that.

    Then during Full Build, I only need to check my Model "FSGAddress", that's it, right ?

    Thanks,

  • Martin Dráb Profile Picture
    237,990 Most Valuable Professional on at

    Defining what packages your package depends on and defining what you want to build are two independent things.

    The answer to your question (I only need to check my Model "FSGAddress", that's it, right ?) depends on what you want to achieve. For example, if you want to update cross references in GeneralLedger module, compiling FSGAddress (only) won't do the job.

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
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 423 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans