Notifications
Announcements
No record found.
Hi,
I want to debug how a data entity is inserting records into table.
Please guide on how to debug it.
Thanks
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.
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.
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(); }
Thank you Sukrut.
Where did you got this info from? Any whitepapers or blogs ?
I debugged code myself for some issues I was facing , so I knew it . You marked your answer as verified instead of mine .
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.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.