Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / how to debug data enti...
Finance forum

how to debug data entity in AX7

(0) ShareShare
ReportReport
Posted on by 225

Hi,

I want to debug how a data entity is inserting records into table.

Please guide on how to debug it.


Thanks

Categories:
  • Sukrut Parab Profile Picture
    71,687 Moderator on at
    RE: how to debug data entity in AX7

    I debugged code myself  for some issues I was facing , so I knew it . You marked your answer as verified instead of mine .

  • Verified answer
    NewbieAX Profile Picture
    225 on at
    RE: how to debug data entity in AX7

    Thank you Sukrut.

    Where did you got this info from? Any whitepapers or blogs ?

  • Suggested answer
    Sukrut Parab Profile Picture
    71,687 Moderator on at
    RE: how to debug data entity in AX7

    You can put breakpoints in classes like DMFStagingWriter to see how data is inserted in staging .  To see how to is imported in target put breakpoint in processRecords method of DMFEntityWriter class and debug . If you want to see what data you are getting in any datasource you can use mapentityToDatasource method and get datasource like below

     if (_dataSourceCtx.name() == dataEntityDataSourceStr(HRMWorkerEntity, HcmEmployment))
            {
                HcmEmployment hcmEmployment = _dataSourceCtx.getBuffer();
    }


  • NewbieAX Profile Picture
    225 on at
    RE: how to debug data entity in AX7

    I was asking where to put breakpoints in order to debug data import. Basically i want to debug a datasource which is set to readonly. I want to debug, what record it is fetching.

    Also i couldnt find any links where information about data entity method is given. Like when to insertEntityDataSource and other methods.

  • Temur Mukbaniani Profile Picture
    260 on at
    RE: how to debug data entity in AX7

    Are you asking how to debug in general or where to put breakpoints?

    You can put breakpoint in your table's insert method, attach it to process and run the data management import.

    If you want to debug your Public entity with external requests, you will need to use "OData proxy generator", or write your own code and then debug.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Featured topics

Product updates

Dynamics 365 release plans