Notifications
Announcements
No record found.
Hi All,
I am trying to extend existing data entity 'PurchPurchaseOrderLineV2Entity' .
I took below steps so far.
Error message on building custom entity
Hi YOG,
If you are extending the data entity, why did you create a copy of the entity? If you need a copy of the entity anyway, just delete part of the code where PurchInstrumentationLogger is used.
If you extend a data entity, you need to create Data entity extension, and table extension for the staging table.
On the other hand, if you decide to duplicate the entity instead of extending it, you need to duplicate the entity and the staging table.
Class PurchInstrumentationLogger is marked as internal so you can't use it from your own objects (such as entities).
Hi Sergei,
Thanks for your message.
I will try removing the code.
Please can you help me understand part of your message 'Why did you create a copy of the entity?'
I normally duplicate entity to my project and create extension of staging table when i have amend standard data entity.
Is there any other way to do this too?
Regards,
Check comment from Nikolaos. If you make a copy of an entity, it's safer to make a copy of the staging table as well. At least you don't depend on MS changes.
But if you just need to add several fields it's better to create extensions for both cases.
hi Nikolaos,
Thank you for your message.
I am not getting duplicate option for staging table and therefore i am creating extension for it. whereas i get duplicate option for 'Target Entity' and therefore i am using it to duplicate
am i missing any thing.
please see two pictures as below
Staging Table
Target Entity
Looks like you haven't open or created a project before or model associated with project missing reference to ApplicationSuite.
"Duplicate in project" is only available if you have a project open in VS.
Hi Sergei/Nikolaos,
Sergei -- I do have project and model parameters 'Application suite' assigned to it. please see screenshot below
Nikolaos -- thanks. I can see duplicate option.
How do I delete the code? i can see error message '
dynamics://Table/CAPPurchaseOrderLinesV2Entity/Method/insert(748,29): NonPublicClassInaccessible: The method 'createLogger' contained in the non-public class 'PurchInstrumentationLogger' is inaccessible.
and it is under 'Insert' method
Model para
About the error message, just delete the insert method and the error will go away.
Moved to D365 Finance forum.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 544 Most Valuable Professional
André Arnaud de Cal... 450 Super User 2025 Season 2
Sohaib Cheema 250 User Group Leader