web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Error message on data entity duplicate

(0) ShareShare
ReportReport
Posted on by 55

Hello,

I'm trying to create a custom data entity based off a duplicate off an existing one. However, I'm getting errors like below when I compile right after the duplication.

Can someone please tell me what needs to be done to make this work ?

Error Method 'validateDefaultDimensionDisplayValueIsNonLedgerType' is internal and can be called only from within the same module or assembly. dynamics://Table/LedgerJournalLineCDSCopy/Method/validateWrite 105

I am referrencing the ApplicationSuite model in my model.

Thanks

I have the same question (0)
  • Suggested answer
    Frank Bruemmer Profile Picture
    354 on at
    RE: Error message on data entity duplicate

    Darrell, I'm afraid you won't be able to use methods marked as 'internal'. You will need to come up with your own, which can be a copy or maybe you don't event need that method.

  • Verified answer
    Sukrut Parab Profile Picture
    71,699 Moderator on at
    RE: Error message on data entity duplicate

    validateDefaultDimensionDisplayValueIsNonLedgerType is an internal static method on the LedgerJournalLineentity which you can not use in your custom entity . What you can do is copy this method in your custom entity , if you really want to use this method or completely remove call to this method from validate write method.

  • Verified answer
    nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Error message on data entity duplicate

    You can't call code that is declared as internal from your custom objects. It can be called only from Microsoft code.

    Your options are:

    - Remove that code and continue working with your own (duplicated) entity

    - Forget your own entity and try to extend the standard entity instead

    The correct option depends on what you are trying to achieve and why you ended up duplicating the standard entity.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 882 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans